Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install @angular/cli using npm

Tags:

I am new to "@angular/cli", I have tried every thing but could not install. I am tired now please some one can help me to install angular 4 "@angular/cli" in my system.

node and npm Version enter image description here

and when I am installing "npm install -g @angular/cli" then getting enter image description here

after installing node -v 6 I am getting below erorr enter image description here

please suggest me where actually I am wrong.

like image 747
Rajpurohit Avatar asked Dec 06 '17 09:12

Rajpurohit


2 Answers

My friend,

Please try: npm cache clean --force. Maybe your npm cache got confused.

like image 113
ga.breban Avatar answered Oct 06 '22 05:10

ga.breban


It could be issue with your node version. I will suggest you to reinstall node and try it again.

Or you can also try to clean node cache of using npm cache clean --force

like image 39
Saurabh Agrawal Avatar answered Oct 06 '22 03:10

Saurabh Agrawal