links to nodejs
This commit is contained in:
parent
5dcf1140fa
commit
ce210932fd
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue