piernik
piernik

Reputation: 3657

Can't install new version of angular/cli

I've unistalled angular/cli -g but running ng -v shows me angular cli: 1.6.2 How is that possible? I'm not in a directory with packakge.json file or node_modules folder.

After installing npm install -g @angular/cli nothing changes. ng -v still returns 1.6.2

I have node: v8.11.2 and npm: 6.0.1

Screenshot: enter image description here

Environment variables: enter image description here

Upvotes: 1

Views: 77

Answers (1)

Igor
Igor

Reputation: 62213

To find the location of the file execute this: where ng, that should give you the folders where the ng command is found. Then you can track these down and delete them.

Upvotes: 2

Related Questions