-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found: Can't resolve 'react' #2534
Comments
Try removing If it doesn't help, install an older version of npm (e.g. 3.x). 5.x is still fairly buggy and might be causing this. I'll close because it is not an issue on our side. npm just failed to install the |
Removing package-lock.json and then running npm install helped me, thanks! |
it worked fine for me:
|
it did not help me after removing package-lock.json i run npm install and it still install another package-lock.json and the error still remains |
Same here - the error location changed, but it couldn't find react nonetheless. Incredibly weird. |
Delete Run If it doesn't, something's messed up with npm or Yarn on your system. Try to update either. If you have |
I am currently facing this problem when I attempt to install any node package into an app created with
create-react-app
:`npm WARN gentlyRm not removing /Users/user/Desktop/mobx-shopping/node_modules/espree/node_modules/.bin/acorn as it wasn't installed by /Users/user/Desktop/mobx-shopping/node_modules/espree/node_modules/acorn
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0-0 but none was installed.`
Then when I run the app with
npm start
and it compiles, I get the following error:Node version: 8.0.0
NPM version: 5.0.3
React: 15.6.0
The text was updated successfully, but these errors were encountered: