-
Notifications
You must be signed in to change notification settings - Fork 336
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
build fails on windows (spawn issue) #15
Comments
What version of node do you have installed? Try updating your installed gems, and running brew update. I had some issues like this on other generators and it always came back to something needed to be updated on my end |
hi Jerome, I'm not sure but i think it's related to the use of spawn, in the 'Gruntfile.js', on windows. A solution would be to replace spawn by win-spawn:
|
Jerome, Can you give us some more information about what operating system you're on and what version of Node.js you're using? I was unable to reproduce this issue, so if the above mentioned suggestions haven't resolved your problem, please let us know! Thanks. |
Issue was fixed with Flow11's tip: I develop on windows 7 PC and node.js version is v0.10.25. Thank you for the quick reply! Jerome |
Re-opening this for now. I used |
Looks like the root cause of this issue is that the main Great gist - https://gist.github.com/domenic/2790533#non-portable-apis Even the official I should have a fix for this shortly. |
I just got the exact same error even with the branch logic using the grunt build command. I'm using the win-spawn for now and it works |
@pgruenbacher are you still experiencing this issue on the latest version of |
@diegonetto just did a clean install, and grunt build returned no errors. looks good. |
Just an update, this issue still happens on Windows machines (Win7 for example) with all npm packages updated (including generator-ionic@0.6.0). |
You can modify the spawn variable at the top of the Gruntfile to the follwing: This has a dependency on the win-spawn plugin which will need to be added to your package.json and installed. |
@djett41 That worked .. Thanks ! |
Flow, Thank you very much. It worked for me. |
Hi,
I generated a new projet just following the generation steps provided on the main page of generator-ionic. The command 'grunt serve' works fine. But the next one 'grunt build' fails with the following error:
...
Running "cordova:build" task
c:\Data\Kai\panini\dev\stigga-stack\client3\node_modules\grunt-contrib- compass\node_modules\tmp\lib\tmp.js:261
throw err;
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
what did I wrong?
Thank you in advance for your help!
Jerome
The text was updated successfully, but these errors were encountered: