I am try to install Angular CLI but running into the error above.
Do I need JAVA installed in my machine?
Tried following Commands repeatedly still did not worked.
npm cache clear
npm uninstall -g @angular/cli
npm install -g @angular/cli
node -v:
v9.4.0
npm -v:
5.6.0
What are the prerequisites to install Angular CLI?
After all running command prompt as admin did not worked. Rolling back issue fixed but still facing the same issue. updated question with the above image.
-
Did you try running cmd as administrator?Benjamin Schäublin– Benjamin Schäublin2018年01月21日 15:36:49 +00:00Commented Jan 21, 2018 at 15:36
1 Answer 1
You don't need JAVA to install angular/cli, think you're only seeing this because it's part of environment variable
pathon your computerThe current issue you're seeing is fail to install npm package uglifyjs globally in windows,in AppData Roaming directory
EPRM: operation not premitted, lstat `c:\Users\dell\AppData\Roaming\npm\node_modules...
Most likely because your current user login doesn't have write permission to this directory. So try to open command prompt as admin, which should have write-permission, then try again.
5 Comments
npm install -g -f angular-cli-f if you haven't installed anything important globally, i suggest you go to your global npm directory (type %APPDATA% in file explore, and go to npm directory, and delete node_modules), then update node, and npm to latest, and retry