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
  • 8,346
  • 16
  • 39
  • 53
Kuldeep Tiwari
  • 155
  • 1
  • 2
  • 7

3 Answers3

3

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

coder
  • 8,346
  • 16
  • 39
  • 53
  • 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
  • 3,296
  • 1
  • 22
  • 42
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
  • 2,138
  • 2
  • 22
  • 38