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 spago init fails using git bash on windows #1305

Open
Neppord opened this issue Nov 27, 2024 · 3 comments
Open

npx spago init fails using git bash on windows #1305

Neppord opened this issue Nov 27, 2024 · 3 comments

Comments

@Neppord
Copy link
Contributor

Neppord commented Nov 27, 2024

$ npx spago init
file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48911
                  throw util.fromLeft(step3);
                  ^

Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:761:9)
    at file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:83989:18
    at runSync (file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48568:21)
    at run16 (file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48761:25)
    at file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48777:23
    at drain (file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48595:9)
    at Object.enqueue (file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48613:11)
    at file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:48771:31
    at __do4 (file:///D:/spago-next-test/node_modules/spago/bin/bundle.js:86427:77) {
  errno: -4071,
  code: 'EINVAL',
  syscall: 'spawn'
}

Node.js v22.8.0

Do not know what even is failing, since the error message contains very little information.

@Neppord
Copy link
Contributor Author

Neppord commented Nov 27, 2024

I also tested with Node.js v23.3.0

@Neppord Neppord changed the title npx spago init fails on windows npx spago init fails using git bash on windows Nov 27, 2024
@Neppord
Copy link
Contributor Author

Neppord commented Nov 27, 2024

This seams to be related with using git bash, it works if you run it in powershell.

It is the first time I have had this issue with node, that I can remember so far.

@s5bug
Copy link

s5bug commented Dec 10, 2024

Failing in PowerShell too

PS C:\Users\aprim\Documents\pslua-test> spago init
file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48911
                  throw util.fromLeft(step3);
                  ^

Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:753:9)
    at file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:83989:18
    at runSync (file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48568:21)
    at run16 (file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48761:25)
    at file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48777:23
    at drain (file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48595:9)
    at Object.enqueue (file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48613:11)
    at file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:48771:31
    at __do4 (file:///C:/Users/aprim/AppData/Roaming/nvm/v23.3.0/node_modules/spago/bin/bundle.js:86427:77) {
  errno: -4071,
  code: 'EINVAL',
  syscall: 'spawn'
}

Node.js v23.3.0

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

No branches or pull requests

2 participants