Skip to content

Conversation

@didierg
Copy link

@didierg didierg commented Jan 29, 2015

Uses SETLOCAL to add the current node installation to path when executing the npm batch script. Packages running scripts using "node..." will now be executed correctly.

For instance, the module "node-sass" installation was failing because the module has scripts:
{ "install": "node scripts\install.js", ... }
but node was not recognized as a valid command because it was not in the PATH.

Using SETLOCAL allows to add the local node installation to the path for the duration of the batch execution.

…ting the npm batch script. Packages running scripts using "node..." will now be executed correctly.
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

Successfully merging this pull request may close these issues.

1 participant