Kuldeep Tiwari
Kuldeep Tiwari

Reputation: 425

No valid versions available for undefined when running npm install -g @angular/cli

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

Answers (3)

Thomas John
Thomas John

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

SELA
SELA

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.

Download the Node.js

Upvotes: 0

coder
coder

Reputation: 8702

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

Upvotes: 3

Related Questions