question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Error: EINVAL: invalid argument, mkdir 'E:\www\test-react-static\dist\templates\E:\www\test-react-static\src\pages

See original GitHub issue

Reporting 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

  1. react-static build --staging

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SmartyPcommented, May 2, 2020

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-run yarn install.

Thanks for the fix, will keep an eye out for v8 for the follow up.

1reaction
SleeplessBytecommented, Feb 6, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found