Attempt npm install fix
This commit is contained in:
parent
007c1cb898
commit
6ec336da06
|
@ -137,6 +137,8 @@ function mesh_install_nodejs {
|
|||
#cp $rootdir/usr/bin/npm $rootdir/root/npm
|
||||
|
||||
get_npm_arch
|
||||
|
||||
$mesh_install_nodejs_prefix npm config set unsafe-perm true
|
||||
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
|
||||
if [ -f $rootdir/usr/local/bin/npm ]; then
|
||||
cp $rootdir/usr/local/bin/npm /usr/bin/npm
|
||||
|
|
Loading…
Reference in New Issue