Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I getting error "No valid versions available for undefined" while installing create-react-app

I'm trying to install React through command prompt. NodeJS is already installed.

When I try to run this command:

npm i -g create-react-app

It is displaying error as shown below:

npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xyz\AppData\Roaming\npm-cache\_logs\2019-12-10T10_51_39_2222-debug.log
like image 513
rishabh shukla Avatar asked Dec 05 '25 03:12

rishabh shukla


1 Answers

Sometimes this can happen when you are using a private NPM registry / proxy registry and it has corrupted metadata. I've seen this happen with Sonatype Nexus 3 - there were corresponding error messages in the server logs.

like image 141
Simon Hardman Avatar answered Dec 07 '25 16:12

Simon Hardman