Reactjs project creating while react-dev-utils not found

Viewed 2858

I had created reactjs project first I had installed globally create react app

npm install -g create-react-app

next, I try to project creation. am using this command

create-react-app react-firebase

while installing i had faced npm ERR! 404 Not Found: react-dev-utils@^5.0.2

error:

npm ERR! code E404
npm ERR! 404 Not Found: react-dev-utils@^5.0.2

How to fix it...

3 Answers

i tried this yarn add -g react-dev-utils@https://registry.npmjs.org/react-dev-utils/react-dev-utils-5.0.2.tgz (remove the "/-/" from the URL) and then run create-react-app my-app and it worked.

or if using npm try:

npm install -g react-dev-utils@https://registry.npmjs.org/react-dev-utils/react-dev-utils-5.0.2.tgz

Something has changed in the registries. Explicitly adding the package didn't work for me, but flushing the lock files to remove reference to the old registry path did:

Yarn:

  • Delete yarn.lock
  • Run yarn

NPM:

  • Delete package-lock.json
  • Run npm install
Related