mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Rework NodeJS install (#4375)
This commit is contained in:
@@ -10,7 +10,8 @@ $CachePath = 'C:\npm\cache'
|
||||
New-Item -Path $PrefixPath -Force -ItemType Directory
|
||||
New-Item -Path $CachePath -Force -ItemType Directory
|
||||
|
||||
Choco-Install -PackageName nodejs-lts -ArgumentList "--force"
|
||||
$defaultVersion = (Get-ToolsetContent).node.default
|
||||
Choco-Install -PackageName nodejs -ArgumentList "--version=$defaultVersion"
|
||||
|
||||
Add-MachinePathItem $PrefixPath
|
||||
$env:Path = Get-MachinePath
|
||||
|
||||
Reference in New Issue
Block a user