|
|
|
|
181
|
fi
|
181
|
fi
|
182
|
rm -f /root/install-nodejs.sh
|
182
|
rm -f /root/install-nodejs.sh
|
183
|
|
183
|
|
|
|
184
|
+ # second npm install attempt seems necessary
|
|
|
185
|
+ npm install -g npm@${NPM_VERSION} --save
|
|
|
186
|
+ cp /usr/local/bin/npm /usr/bin/npm
|
|
|
187
|
+
|
184
|
# node seems tricky so here we're going to double check
|
188
|
# node seems tricky so here we're going to double check
|
185
|
# that the versions we expect did get installed
|
189
|
# that the versions we expect did get installed
|
186
|
CURR_NODE_VERSION=$(node --version)
|
190
|
CURR_NODE_VERSION=$(node --version)
|