[Bug] Error: EINVAL: invalid argument, mkdir 'E:\www\test-react-static\dist\templates\E:\www\test-react-static\src\pages
See original GitHub issueReporting a bug?
Error: EINVAL: invalid argument, mkdir 'E:\www\test-react-static\dist\templates\E:\www\test-react-static\src\pages
Environment
npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers
here:
System:
OS: Windows 10 10.0.19041
CPU: (6) x64 AMD Phenom(tm) II X6 1090T Processor
Memory: 659.62 MB / 12.00 GB
Binaries:
Node: 12.13.0 - C:\Program Files\nodejs\node.EXE
npm: 6.13.6 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.19041.1.0
Internet Explorer: 11.0.19041.1
npmPackages:
react: ^16.9.0 => 16.12.0
react-dom: ^16.9.0 => 16.12.0
react-helmet: ^5.2.1 => 5.2.1
react-static: ^7.2.0 => 7.2.3
react-static-plugin-reach-router: ^7.2.0 => 7.2.3
react-static-plugin-sitemap: ^7.2.0 => 7.2.3
react-static-plugin-source-filesystem: ^7.2.0 => 7.2.3
of course include any other package versions here if relevant.
Steps to Reproduce the problem
- react-static build --staging
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Error: EINVAL: invalid argument, mkdir 'C:\Users\Peter.000\'C ...
This problem is due to the wrong prefix which can be changed by finding .npmrc file present in C:\Users\<your_account_name>. Set it as
Read more >Error: EINVAL: invalid argument, mkdir when running `yarn ...
Bug description This is an interesting error. Some context first. I am using Anka, a virtualization technology from Veertu to execute tasks ...
Read more >Error: EINVAL: invalid argument, mkdir 'C:\Users ... - Laracasts
I have installed node 12.16.2 Unfortunately, when i run npm i am getting an error I think this is due to some default...
Read more >Error 22 mkdir FreeFileSync 7.6 on Ubuntu
Usually this should be harmless but it's possible that this is causing the invalid argument error for the gvfs implementation. I've applied this ......
Read more >EINVAL error - Neo4j - 17583
Error : EINVAL: invalid argument, mkdir ... so i think you have more luck on stackoverflow or in the node.js community with this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just wanted to confirm that I was seeing the same issue using my local C drive. The update from 9 days ago showed how to fix it. Just open your
package.json
and change"react-static": "^7.2.0",
to"react-static": "7.1.0",
and re-runyarn install
.Thanks for the fix, will keep an eye out for v8 for the follow up.
For me it works on the C:\ disk, but I’ve seen that this really depends on the environment. Windows support has only been added recently; RS 8 is developed on windows so this will be fixed. You can downgrade to 7.1.x instead!