links to nodejs

This commit is contained in:
Bob Mottram 2016-08-13 12:15:20 +01:00
parent 5dcf1140fa
commit ce210932fd
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 16 additions and 0 deletions

View File

@ -210,6 +210,14 @@ function mesh_install_ipfs_js {
chroot ${rootdir} apt-get -y install npm
chroot ${rootdir} apt-get -y install libpam0g-dev fuse
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
echo $'nodejs was not installed'
exit 63962
fi
chroot ${rootdir} ln -s /usr/bin/nodejs /usr/bin/node
chroot ${rootdir} ln -s /usr/bin/nodejs /usr/local/bin/node
chroot ${rootdir} npm cache clean -f
chroot ${rootdir} npm install -g n
chroot ${rootdir} n ${IPFS_NODE_VERSION}
@ -278,6 +286,14 @@ function install_ipfs_js {
apt-get -y install npm
apt-get -y install libpam0g-dev fuse
if [ ! -f /usr/bin/nodejs ]; then
echo $'nodejs was not installed'
exit 63962
fi
ln -s /usr/bin/nodejs /usr/bin/node
ln -s /usr/bin/nodejs /usr/local/bin/node
npm cache clean -f
npm install -g n
n ${IPFS_NODE_VERSION}