0

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

coder
  • 7,778
  • 15
  • 37
  • 52

3 Answers3

3

Seems to be you have to uninstall the node version and have to install it again

coder
  • 7,778
  • 15
  • 37
  • 52
  • ok try to remove node js completely by following [this](https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows) then install the current LTS version. Then try again – coder Dec 09 '19 at 13:35
0

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.

Download the Node.js

Selaka Nanayakkara
  • 2,258
  • 16
  • 34
0

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
Thomas John
  • 1,987
  • 2
  • 20
  • 37