Copying npm
This commit is contained in:
parent
db3d7582bc
commit
652c3a08ab
|
@ -165,7 +165,7 @@ function mesh_install_nodejs {
|
||||||
nodejs_fix_cpu_detection
|
nodejs_fix_cpu_detection
|
||||||
$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
|
||||||
if [ -f "$rootdir/usr/local/bin/npm" ]; then
|
if [ -f "$rootdir/usr/local/bin/npm" ]; then
|
||||||
cp "$rootdir/usr/local/bin/npm" /usr/bin/npm
|
cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
|
||||||
fi
|
fi
|
||||||
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
|
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ function mesh_install_nodejs {
|
||||||
# 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
|
||||||
if [ -f "$rootdir/usr/local/bin/npm" ]; then
|
if [ -f "$rootdir/usr/local/bin/npm" ]; then
|
||||||
cp "$rootdir/usr/local/bin/npm" /usr/bin/npm
|
cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
|
||||||
fi
|
fi
|
||||||
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
|
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
|
||||||
if [ -f "$rootdir/usr/bin/node" ]; then
|
if [ -f "$rootdir/usr/bin/node" ]; then
|
||||||
|
|
Loading…
Reference in New Issue