-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Error: Cannot find module 'C:\WorkPlace\moo\iyin\node_modules\react-scripts\package.json #708
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
Comments
Try manually checking if the file exists. If it doesnt exist, that's probably a bug |
There is only one file in the project directory generated by CLI, |
This means your installation failed (or something interrupted it). Maybe there was a network failure. Try running create-react-app again and make sure it finishes successfully. If it doesn't work please paste the complete output from that command. |
Could this be related? Can you try solutions in this question? http://stackoverflow.com/questions/19569990/npm-install-doesnt-work-in-windows-powershell |
Does a file called |
package.json does not exist in C: |
Can you try creating a project anywhere else on the disk? |
I have tried creating projects in different directories many times, same error reported |
Last resort would be to use something like Docker or vagrant |
Can you try updating npm? Might be some bug.
|
This is interesting. Can you look into why this happens? |
Closing as it appears that this is some kind of localized issue happening with your npm setup. I’m happy to reopen if you could look into why this happens and provide some hints, or if more users hit this. At the moment it doesn’t appear very actionable for us, unfortunately. |
If you are reporting a bug, please fill in below. Otherwise feel to remove this template entirely.
Description
Error: Cannot find module 'C:\WorkPlace\moo\iyin\node_modules\react-scripts\package.json
Expected behavior
install create-react-app successfully
Actual behavior
installation failed
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): [email protected]node -v
: v6.5.0npm -v
:3.10.3Then, specify:
The text was updated successfully, but these errors were encountered: