Reputation: 425
Running Windows 10 Enterprise.
I am trying to install angular cli to run the angular project. I entered below command.
--> npm install -g @angular/cli
I m getting below error.
--> npm ERR! code ENOVERSIONS --> npm ERR! No valid versions available for undefined
what am i doing wrong
Upvotes: 0
Views: 4395
Reputation: 2188
Please make sure old node_modules are completely deleted and package-lock.json . Try fresh npm install now
rm package-lock.json
rm -rf node_modules
npm install
Upvotes: 0
Reputation: 6793
In order to run the npm install -g @angular/cli
You need to have the node installed. Please find the below link to install the relevent node version for your PC. And try running the npm install -g @angular/cli
command again.
Upvotes: 0
Reputation: 8702
Seems to be you have to uninstall the node version and have to install it again
Upvotes: 3