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