File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ NODE_LTS_VERSION=${NODE_LTS_VERSION:-14}
55
66source " ${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
77
8+ if [[ -z " ${npm_global_prefix} " ]]; then echo " npm_global_prefix is unset" && exit 1; fi
9+ if [[ -z " ${NODE_ARTIFACTS_PATH} " ]]; then echo " NODE_ARTIFACTS_PATH is unset" && exit 1; fi
10+
811CURL_FLAGS=(
912 --fail # Exit code 1 if request fails
1013 --compressed # Request a compressed response should keep fetching fast
9093 mv " ${NODE_ARTIFACTS_PATH} /${node_directory} " " ${NODE_ARTIFACTS_PATH} /nodejs"
9194fi
9295
93- export PATH=" $NODE_ARTIFACTS_PATH /npm_global/bin:$NODE_ARTIFACTS_PATH /nodejs/bin:$PATH "
94- hash -r
95-
9696if [[ $operating_system != " win" ]]; then
9797 # Update npm to latest when we can
9898 npm install --global npm@latest
You can’t perform that action at this time.
0 commit comments