This commit is contained in:
Bob Mottram 2018-04-03 11:48:18 +01:00
parent c30ee3949f
commit 2855d5ac22
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,9 @@ 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
if [ -f "$rootdir/usr/local/bin/npm" ]; then