Skip to content
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

npx Error on mkdir when running on Windows10 #2279

Closed
Toordokter opened this issue Nov 9, 2019 · 5 comments
Closed

npx Error on mkdir when running on Windows10 #2279

Toordokter opened this issue Nov 9, 2019 · 5 comments
Labels

Comments

@Toordokter
Copy link

When I try to run npx create-react-app, it always fails on this line:
Error: C:\new-app\node_modules\core-js: EINVAL: invalid argument, mkdir 'C:\Users\andre\AppData\Local\Temp;;C:\WINDOWS\system32\yarn--1573267623945-0.6642629310289891'

I am running cmd as administrator. Any ideas on how to resolve?
yarn-error.log

@richardlau richardlau transferred this issue from nodejs/node-report Nov 9, 2019
@Toordokter Toordokter changed the title Error on mkdir when running on Windows10 NPX Error on mkdir when running on Windows10 Nov 9, 2019
@Toordokter Toordokter changed the title NPX Error on mkdir when running on Windows10 npx Error on mkdir when running on Windows10 Nov 9, 2019
@tniessen
Copy link
Member

'C:\Users\andre\AppData\Local\Temp;;C:\WINDOWS\system32\yarn--1573267623945-0.6642629310289891'

That is not a valid path on Windows (it contains a colon which is not a valid file name character), it looks like it is a concatenation of two paths.

C:\WINDOWS\system32\yarn. This looks weird. Yarn should not touch that directory.

@milindbajaj
Copy link

@Toordokter
Is your problem resolved??
if yes please tell me how you reslove it , I am also getting same error

@Toordokter
Copy link
Author

Toordokter commented Jul 27, 2020 via email

@PoojaDurgad
Copy link

@milindbajaj - is this still an issue? if that is not the case hopefully zkat/npx#146 it may help you to resolve the issue.

@PoojaDurgad
Copy link

issue resolved. closing!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants