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.
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", ... }
butnode
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.