mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Update Install-NodeLts.ps1
This commit is contained in:
@@ -17,11 +17,11 @@ Choco-Install -PackageName nodejs-lts -ArgumentList "--force"
|
|||||||
Add-MachinePathItem $PrefixPath
|
Add-MachinePathItem $PrefixPath
|
||||||
$env:Path = Get-MachinePath
|
$env:Path = Get-MachinePath
|
||||||
|
|
||||||
setx NPM_CONFIG_PREFIX $PrefixPath /M
|
setx npm_config_prefix $PrefixPath /M
|
||||||
$env:NPM_CONFIG_PREFIX = $PrefixPath
|
$env:npm_config_prefix = $PrefixPath
|
||||||
|
|
||||||
setx NPM_CONFIG_CACHE $CachePath /M
|
setx npm_config_cache $CachePath /M
|
||||||
$env:NPM_CONFIG_CACHE = $CachePath
|
$env:npm_config_cache = $CachePath
|
||||||
|
|
||||||
npm config set registry http://registry.npmjs.org/
|
npm config set registry http://registry.npmjs.org/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user