Skip to content
This repository was archived by the owner on Jul 25, 2026. It is now read-only.

Uses SETLOCAL in generated npm.cmd - #16

Open
didierg wants to merge 1 commit into
Blacklite:masterfrom
didierg:master
Open

Uses SETLOCAL in generated npm.cmd#16
didierg wants to merge 1 commit into
Blacklite:masterfrom
didierg:master

Conversation

@didierg

@didierg didierg commented Jan 29, 2015

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant