From 6da57dbeaf7e781c76f47e7afbe2e91d1450cc41 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Jun 2017 11:31:25 +0100 Subject: [PATCH] The usual oddness with npm installation --- src/freedombone-utils-nodejs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 6a3054ca..77ddd785 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -63,7 +63,9 @@ n ${NODEJS_VERSION} 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 +npm install -g npm@${NPM_VERSION} --save cp /usr/local/bin/node /usr/bin/nodejs +cp /usr/local/bin/npm /usr/bin/npm EOF chroot "${rootdir}" chmod +x /root/install-nodejs.sh chroot "${rootdir}" /root/install-nodejs.sh @@ -178,8 +180,10 @@ function install_nodejs { 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 + npm install -g npm@${NPM_VERSION} --save cp /usr/local/bin/node /usr/bin/nodejs + cp /usr/local/bin/npm /usr/bin/npm # node seems tricky so here we're going to double check # that the versions we expect did get installed