From d37e7f388804911cd0694a98a37e7b4118ede1c5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 2 Apr 2017 11:42:07 +0100 Subject: [PATCH] Use upgrade rather than install --- src/freedombone-utils-nodejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 3ecc995e..a50b2eb7 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -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