You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to use "grunt link" to simplify linking many projects for the unix devs in my team, however
it fails under windows (yes, poor devs having to run on windows.)
They use "Git Bash" to execute shell commands.
$ grunt link --verbose --debug
Initializing
Command-line options: --verbose, --debug=1
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-link" local Npm module tasks.
Reading c:\redacted\node_modules\grunt-link\package.json...OK
Parsing c:\redacted\node_modules\grunt-link\package.json...OK
Loading "link.js" tasks...OK
+ link
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
>> No tasks were registered or unregistered.
Running tasks: link
Running "link" task
[D] Task source: c:\redacted\node_modules\grunt-link\tasks\link.js
Cleaning modules
[D] Executing npm unlink some-module --global
Fatal error: ps process exited with code -1
It seems like the "npm unlink" command returns an exit code of "-1" when executed with the "exec" function from linker.js
I tried disabling the error code checks, and after that I get this error :
Fatal error: Already fired!
Any idea where this might come from ?
Thanks
The text was updated successfully, but these errors were encountered:
@phtrivier - exec uses require("child_process").spawn to execute some of the commands instead of using node's built in options which are better for cross-platform stability. I'm looking into changing this but if you want to take a stab and pull request before I can get to it, feel free!
I think the command that causes the issue is "npm unlink" ; what would you mean by "node's built in options" in this case ? Is it possible to programmatically use npm commands ?
I managed to use "grunt link" to simplify linking many projects for the unix devs in my team, however
it fails under windows (yes, poor devs having to run on windows.)
They use "Git Bash" to execute shell commands.
It seems like the "npm unlink" command returns an exit code of "-1" when executed with the "exec" function from linker.js
I tried disabling the error code checks, and after that I get this error :
Any idea where this might come from ?
Thanks
The text was updated successfully, but these errors were encountered: