I am trying to use Angular-CLI to install a new Angular2 app, but keep running into the following issue:
ng new payment-calc-app
After \"Install
i figured out that this could be due to various reasons, one could be node versions. but mostly and even in my case as @maury844 pointed out, it was due to ng serve running in another command prompt in parallel. deleting npm and npm-cache folders in appdata/roaming could also be related to this issue. try all these.
Dear angular 2 coders for survival - this error was pain in the butt, did not resolve with npm cache clean, or restart or other my known methods... Just uninstall previous node version and INSTALL new current version @ https://nodejs.org/en/download/current/ - this resolved the error on my machine..so good luck!
I had the same trouble in getting angular cli to work. I tried almost all the possible solutions listed on stackoverflow and other mediums but got failure.
For me what worked was to run an antivirus security scan on my computer. A malicious program was setting the node_modules inside C://users//AppData/roaming/npm to read only mode. Once that virus got removed, I Installed npm and angular cli again and it finally worked.