Unable to create new react app with npx create-react-app
Asked Answered
M

1

2

I am trying to create new react app with npx create-react-app [name] command. But I get following error:

error Couldn't find package "@babel/[email protected]" required by "babel-preset-react-app@^9.1.2" on the "npm" registry.

Each time it is saying some package could not be found on npm registry (not only @babel/[email protected] this package).

I have also updated my npm and npx, but no success.

Misconception answered 29/5, 2020 at 6:17 Comment(0)
L
2

You can try deleting the .npmrc file located in Users/you/.npmrc and run the command again, seems there is a bug with npm and this is a workaround

Lavin answered 31/5, 2020 at 22:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.