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}
5
5
6
6
source " ${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
7
7
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
+
8
11
CURL_FLAGS=(
9
12
--fail # Exit code 1 if request fails
10
13
--compressed # Request a compressed response should keep fetching fast
90
93
mv " ${NODE_ARTIFACTS_PATH} /${node_directory} " " ${NODE_ARTIFACTS_PATH} /nodejs"
91
94
fi
92
95
93
- export PATH=" $NODE_ARTIFACTS_PATH /npm_global/bin:$NODE_ARTIFACTS_PATH /nodejs/bin:$PATH "
94
- hash -r
95
-
96
96
if [[ $operating_system != " win" ]]; then
97
97
# Update npm to latest when we can
98
98
npm install --global npm@latest
You can’t perform that action at this time.
0 commit comments