diff --git a/Ncapsulate.Node/tools/install.ps1 b/Ncapsulate.Node/tools/install.ps1 index 2e91337..c3b24e5 100644 --- a/Ncapsulate.Node/tools/install.ps1 +++ b/Ncapsulate.Node/tools/install.ps1 @@ -19,7 +19,10 @@ Set-Content $nodeLocation $nodeCmd -Encoding String <# Install npm.cmd #> $npmCmd = "@echo off +setlocal +set PATH=%~dp0$relativePath\nodejs;%PATH% $relativePath\nodejs\npm %* +endlocal @echo on"; $npmLocation = ($projectDirectory + '\npm.cmd') Set-Content $npmLocation $npmCmd -Encoding String