Call cpu detection fix after installing new npm

This commit is contained in:
Bob Mottram 2018-04-02 15:35:57 +01:00
parent cefafc1430
commit 13d834bfcb
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ function mesh_install_nodejs {
fi
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
# deliberately called again
nodejs_fix_cpu_detection
# update from the old debian nodejs version
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g n@${NODEJS_N_VERSION} --save
$mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}