-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Running "npx create-react-app my-app" fails caused by found vulnerability #4487
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
I believe this is the same vulnerability: #4479. However, Create React App isn't directly affected by that vulnerability. If In the meantime, you can use yarn instead of npm by running |
In another environment I have I was able to run the command
I then updated npm to 6.1.0 in that environment. Details:
And now, on this machine, I was NOT getting the error altought using npm 6.x. The output was:
So after checking on multiple systems this issue seems to be related to some system configuration. I just have not found out which one yet. If you check closely the first output I posted has a line saying "The system cannot find the path specified." in it. I seem to be getting that error whenever I call npm on the affected systems but so far I was unable to find out what's causing this strange behaviour. Could be completely unrelated thought. I'd be greatful for any ideas where to get more logging information from so I can find out what's actually happening there. |
The |
@iansu - as I wrote I updated to 6.1.0 on that system and do not get the error anymore. It's not dependent on the npm version. Or atleast not solely. |
I missed that detail. I’m not at my computer and must not have read your reply carefully enough. I’m not sure what would be causing that. We’ll have to look into it more. |
Not a problem. I'll let you know when I find out some more details. |
The problem is in with a vulnerability in create-react-app's |
That’s not the case for how it’s used by cssnano (which is why you get it in CRA). So CRA apps are definitely not affected by this. Additionally it’s a build dependency. Even if CRA dev environment was affected by this (which is not the case), “could leave apps compromised” is extremely misleading because this dependency isn’t used at runtime. CRA just gives you a static bundle, there’s no way a build dependency vulnerability could compromise your deployed apps. |
For more details see my reply in #4479 (comment) |
This looks resolved, postcss-filter-plugins removed uniqid dependency in their latest update and subsequently the audit check passes. |
@bugzpodder thanks for the followup! |
Is this a bug report?
Yes
Did you try recovering your dependencies?
npm 6.0.1
Which terms did you search for in User Guide?
None, see issue description.
Environment
npx: installed 67 in 13.51s
Environment:
OS: Windows 10
Node: 8.11.2
Yarn: Not Found
npm: 6.0.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.0.0.0 AI-171.4443003
ERROR: package.json not found!
Steps to Reproduce
npx create-react-app my-app
Expected Behavior
A basic react environment should be created.
Actual Behavior
npm install fails. Full output:
Reproducible Demo
Really just any Windows PC with the env. spec. I posted. Node + all NPM / Node folders on the system have been deleted and node re-installed (tested both: node v8.11.2 LTS and node 10 latest (v10.1.0)). Node cache was verified and force cleaned multiple times as well. I still get the same error.
The text was updated successfully, but these errors were encountered: