diff --git a/images/win/scripts/Installers/Install-NodeLts.ps1 b/images/win/scripts/Installers/Install-NodeLts.ps1 index a44a04fb..4c1b9d27 100644 --- a/images/win/scripts/Installers/Install-NodeLts.ps1 +++ b/images/win/scripts/Installers/Install-NodeLts.ps1 @@ -18,9 +18,7 @@ $env:Path = Get-MachinePath setx npm_config_prefix $PrefixPath /M $env:npm_config_prefix = $PrefixPath -setx npm_config_cache $CachePath /M -$env:npm_config_cache = $CachePath - +npm config set cache $CachePath --global npm config set registry http://registry.npmjs.org/ npm install -g cordova