File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Get-ChildItem -Path $PSScriptRoot
2020Set-Location - Path $node_dir
2121Remove-Item .\npm
2222Remove-Item .\npm.cmd
23- Remove-Item .\npm.ps1
23+ if ( Test-Item .\npm.ps1) { Remove-Item .\npm.ps1 }
2424Remove-Item .\npx
2525Remove-Item .\npx.cmd
2626Move-Item .\node_modules\npm - Destination .\node_modules\npm2
Original file line number Diff line number Diff line change 22set -x
33export BASEDIR=" $PWD /.evergreen"
44
5- NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
5+ if echo $NODE_JS_VERSION | grep -q ^20 ; then
6+ NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
7+ else
8+ NPM_VERSION=10.9.0
9+ fi
610
711if [ " $OS " == " Windows_NT" ]; then
812 powershell " $( cygpath -w " $BASEDIR " ) " /InstallNode.ps1
You can’t perform that action at this time.
0 commit comments