Try n without arch

This commit is contained in:
Bob Mottram 2017-10-13 21:55:22 +01:00
parent c23cd4aee5
commit 4055590fcc
2 changed files with 1 additions and 4 deletions

View File

@ -221,7 +221,6 @@ function mesh_install_ipfs_js {
return return
fi fi
chroot ${rootdir} apt-get -yq install nodejs curl
chroot ${rootdir} apt-get -yq install libpam0g-dev fuse chroot ${rootdir} apt-get -yq install libpam0g-dev fuse
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
@ -300,8 +299,6 @@ function install_ipfs_js {
return return
fi fi
apt-get -yq install nodejs
apt-get -yq install npm
apt-get -yq install libpam0g-dev fuse apt-get -yq install libpam0g-dev fuse
if [ ! -f /usr/bin/nodejs ]; then if [ ! -f /usr/bin/nodejs ]; then

View File

@ -150,7 +150,7 @@ function mesh_install_nodejs {
# update from the old debian nodejs version # 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 npm install --arch=$NPM_ARCH -g n@${NODEJS_N_VERSION} --save
$mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION} $mesh_install_nodejs_prefix n ${NODEJS_VERSION}
cp $rootdir/root/npm $rootdir/usr/bin/npm cp $rootdir/root/npm $rootdir/usr/bin/npm
} }