node -v
v4.5.0
npm -v
5.0.1
Has anyone faced this kind of issue while installing angular-cli in windows 10?
When you running npm install the Angular CLI gets installed locally for your project. Then, when you run npm start or npm run ng <your command> it will kick off. Then when you run ng <command> in your project directory, for commands like scaffolding - ng g <params> or ng update the global CLI will be in use.
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.
Try the following:
step 0: run this command
npm uninstall -g @angular/cli
npm cache clean
step 1: delete this folder: C:\Users\%YOUR-USERNAME%\AppData\Roaming\npm
step 2: uninstall Nodejs from Windows
step 3: restart your PC
step 4: install a fresh copy of Nodejs from here: https://nodejs.org/en/
step 5: install the CLI globally
npm install -g @angular/cli@latest
try this :
$ npm remove -g angular-cli
$ npm cache clean
$ npm install -g angular-cli
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With