post install tasks requiring node fail, when using 2.x npm version
Description
with npm 2.0 a breaking change was introduced to how the npm scripts are handled:
https://github.com/npm/npm/commit/021770b9cb07451509f0a44afff6c106311d8cf6
this change does not add the node executable directory of the current process when executing npm scripts. some modules, like karma phantomjs launcher, rely on executing node commands as part of the post install scripts. this post install scripts will fail on machines without global node installation
Activity
Show:
Igor Sechyn
March 10, 2015, 8:31 AM
fixed in 182b461
i had to refactor the way tasks are executed, instead of using CommandLine, java.lang.Process ist now used instead. this provides an option to add the current node executable to the path environment variable.
Fixed
Assignee
Reporter
Labels
None