Merge pull request #1566 from asklar/patch-1

MSBuild/CL.exe fails to launch when called from a nodeJS script via Yarn
This commit is contained in:
Maxim Lobanov
2020-09-13 16:28:02 +03:00
committed by GitHub

View File

@@ -17,11 +17,11 @@ Choco-Install -PackageName nodejs-lts -ArgumentList "--force"
Add-MachinePathItem $PrefixPath
$env:Path = Get-MachinePath
setx NPM_CONFIG_PREFIX $PrefixPath /M
$env:NPM_CONFIG_PREFIX = $PrefixPath
setx npm_config_prefix $PrefixPath /M
$env:npm_config_prefix = $PrefixPath
setx NPM_CONFIG_CACHE $CachePath /M
$env:NPM_CONFIG_CACHE = $CachePath
setx npm_config_cache $CachePath /M
$env:npm_config_cache = $CachePath
npm config set registry http://registry.npmjs.org/