From 052e01be4d08c326fdab704aa161e6bfcde6a43a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 14 Sep 2017 17:18:51 +0100 Subject: [PATCH] Ensure npm version doesn't get reverted --- src/freedombone-utils-nodejs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 9f0290a8..ed109acf 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -95,6 +95,7 @@ function mesh_install_nodejs { get_npm_arch chroot "$rootdir" npm install --arch=$NPM_ARCH -g n@${NODEJS_N_VERSION} --save chroot "$rootdir" n --arch $N_ARCH ${NODEJS_VERSION} + chroot "$rootdir" npm install -g --arch $NPM_ARCH npm@${NPM_VERSION} --save } function remove_nodejs {