Skip to content
Snippets Groups Projects
Unverified Commit ce210932 authored by Bob Mottram's avatar Bob Mottram
Browse files

links to nodejs

parent 5dcf1140
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment