-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Running into issue when upgrading from 0.4.1->0.4.2 #676
Comments
Can you consistently reproduce this? |
Hey Dan - this happens every time. I'm also receiving the following error when trying to create a new site. Network is also working fine. $ create-react-app erik Installing packages. This might take a couple minutes. npm WARN optional dep failed, continuing [email protected] Error: Cannot find module 'graceful-fs' |
So far I can’t reproduce this with npm 3. Can you update npm in case it’s their bug?
|
Oh okay, I can reproduce this on npm 2. |
After updating npm now getting a completely different error. erisch@ERISCH-X1GEN3 MINGW64 ~/Source/Repos erisch@ERISCH-X1GEN3 MINGW64 ~/Source/Repos Installing packages. This might take a couple minutes. (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit. |
what version of npm are you using? |
I don’t seem to have this problem after (I know it’s a lousy answer but fighting npm issues is hard.) |
I can create a site now, but still running into the same npm start issue. What I'm trying to do is integrate this package with azure, as the default way to build react based azure web-apps and use kudu for deployment. One of the things I noticed here is that the node modules created under node_modules are not defined in package.json. I guess the only workaround would be to eject and deploy the ejected package.json? |
Which one? Missing
Not sure I understand the question. Can you rephrase? |
Confirming this was a result of bad publish. |
Scratch the question I earlier asked. I'm able to create a new site and run npm start with using react-scripts 0.4.2. The issue seems isolated to npm version 2. |
Fixed with 0.4.3. |
(You don’t need to do anything to use |
Thanks a bunch for the quick turnaround Dan. This library rocks! |
If you are reporting a bug, please fill in below. Otherwise feel to remove this template entirely.
Description
Running into an error when I run npm start Error: Cannot find module 'lru-cache'
What are you reporting?
An error.
Expected behavior
The Webpack dev server to properly start.
Tell us what you think should happen.
Actual behavior
Receiving the following error.
module.js:327
throw err;
^
Error: Cannot find module 'lru-cache'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\cross-spawn\lib\parse.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Tell us what actually happens.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):$ npm ls react-scripts
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\extract-text-webpack-plugin requires async@'^1.5.0' but will load
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\async,
npm WARN unmet dependency which is version 2.0.1
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\webpack requires async@'^1.3.0' but will load
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\async,
npm WARN unmet dependency which is version 2.0.1
[email protected] C:\Users\erisch\Source\Repos\Orion-Client
└── [email protected]
node -v
:v4.4.7
npm -v
:2.15.8
Then, specify:
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Unable to create a new app either. I receive the following error.
$ create-react-app erik-app
Creating a new React app in C:\Users\erisch\Source\Repos\erik-app.
Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules\react-scripts
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\erisch\Source\Repos\erik-app\node_modules\react-scripts\node_modules\fs-extra\lib\index.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentially, you might get to the root of your problem during that process.)
Push to GitHub and paste the link here.
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.
The text was updated successfully, but these errors were encountered: