-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issue while running scripty on windows10 #92
Comments
Same here 😢 |
Same here. Have tried clearing NPM cache and clearing out |
@vsawant1608 I feel the mistake might be in creating the script file, it should be with extension As per documentation : In order to add Windows support, you could define For more details on windows support you can read it here |
@sanketphansekar followed those instructions, however what if the script is type |
I was having the same issue regardless of how I configured the shebang. (node, cmd, pwsh, bash, whatever) I was able to get it to work by running Unfortunately using wsl only gets past the initial events.js // Unhandled 'error'. My initial test script just had a console.log statement in it. When I added something that I actually want the script to do, it failed. Changing my node scripts to .cmd files resolved all errors, but left me stuck with re-writing my scripts, which at this point isn't worth the trouble. I want to use JavaScript. Issues like this make me seriously consider switching to a Mac for good. |
Just a hack for this would be to update file in node_modules to use cross_spawn(https://www.npmjs.com/package/cross-spawn). It makes most of the things work fine on windows without any issues. |
Any news? |
I have below package.json file
and below is '/scripts/foo.sh'
When I run
npm run foo
getting below error on windows.Just works fine on ubuntu. Any pointers would be helpful. I tried passing {shell:true} in
node_modules\scripty\lib\run\spawn-script.js:8:17
and it just worked fine.The text was updated successfully, but these errors were encountered: