Test earlier

This commit is contained in:
Bob Mottram 2018-04-03 12:21:58 +01:00
parent 7d02248a5d
commit f26a272f3b
1 changed files with 3 additions and 2 deletions

View File

@ -150,6 +150,9 @@ function mesh_install_nodejs {
fi fi
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm" cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
# TEST
grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules"/*
# deliberately called again # deliberately called again
nodejs_fix_cpu_detection nodejs_fix_cpu_detection
@ -158,8 +161,6 @@ function mesh_install_nodejs {
$mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION} $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
cp "$rootdir/root/npm" "$rootdir/usr/bin/npm" 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 # deliberate second install of npm
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save