Skip to content
Snippets Groups Projects
Commit d37e7f38 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use upgrade rather than install

parent 64f7975d
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ function upgrade_nodejs {
CURR_NPM_VERSION=$(npm --version)
CURR_N_VERSION=$(n --version)
if [[ "$CURR_NPM_VERSION" != "$NPM_VERSION" ]]; then
npm install -g npm@${NPM_VERSION} --save
npm upgrade -g npm@${NPM_VERSION} --save
fi
if [[ "$CURR_N_VERSION" != "$NODEJS_N_VERSION" ]]; then
npm upgrade -g n@${NODEJS_N_VERSION} --save
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment