From f26a272f3bb0cd515bbe05e6345128d619faa7e1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Apr 2018 12:21:58 +0100 Subject: [PATCH] Test earlier --- src/freedombone-utils-nodejs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 6272c84f..72010bb5 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -150,6 +150,9 @@ function mesh_install_nodejs { fi cp "$rootdir/usr/bin/npm" "$rootdir/root/npm" + # TEST + grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules"/* + # deliberately called again nodejs_fix_cpu_detection @@ -158,8 +161,6 @@ function mesh_install_nodejs { $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION} cp "$rootdir/root/npm" "$rootdir/usr/bin/npm" - # TEST - grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules/npm"/* # deliberate second install of npm $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save