From 28701beb59adde55cc3461ec21fe414cfd384765 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Nov 2016 16:19:16 +0000 Subject: [PATCH] Ensure npm on correct version --- src/freedombone-utils-nodejs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index c8497649..b4d3d78c 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -131,11 +131,10 @@ cp /usr/bin/nodejs /usr/bin/node /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh npm install -g n@${NODEJS_N_VERSION} --save n ${NODEJS_VERSION} -npm upgrade -g npm@{NPM_VERSION} -npm install -g npm@{NPM_VERSION} -npm install -g pug@2.0.0-beta6 -npm install -g graceful-fs@4.1.10 -npm install -g minimatch@3.0.3 +npm upgrade -g npm@{NPM_VERSION} --save +npm install -g pug@2.0.0-beta6 --save +npm install -g graceful-fs@4.1.10 --save +npm install -g minimatch@3.0.3 --save exit 0 EOF chmod +x /root/install-nodejs.sh @@ -152,6 +151,9 @@ EOF fi fi + # ensure npm on correct version + npm install -g npm@{NPM_VERSION} --save + mark_completed $FUNCNAME }