Blacklite / Ncapsulate

NuGet and MSBuild wrappers around various Node based tools.
MIT License
29 stars 9 forks source link

Uses SETLOCAL in generated npm.cmd #16

Open didierg opened 9 years ago

didierg commented 9 years ago

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.