Second install of npm
This commit is contained in:
parent
1f702d1900
commit
c4e5f01359
|
@ -128,6 +128,13 @@ function mesh_install_nodejs {
|
|||
$mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
|
||||
cp $rootdir/root/npm $rootdir/usr/bin/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
|
||||
cp $rootdir/usr/local/bin/npm /usr/bin/npm
|
||||
fi
|
||||
cp $rootdir/usr/bin/npm $rootdir/root/npm
|
||||
|
||||
# check the version numbers
|
||||
cat <<EOF > $rootdir/usr/bin/test_nodejs_install
|
||||
#!/bin/bash
|
||||
|
|
Loading…
Reference in New Issue