An actually working nodejs debian package
Needs the jessie repo
This commit is contained in:
parent
f78f19ca72
commit
86d5e5d696
|
@ -44,6 +44,10 @@ NPM_VERSION='4.0.5'
|
||||||
NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
||||||
|
|
||||||
function mesh_install_nodejs {
|
function mesh_install_nodejs {
|
||||||
|
# Note: this has to be jessie for now
|
||||||
|
echo "deb https://deb.nodesource.com/node_6.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
||||||
|
echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
||||||
|
chroot "${rootdir}" apt-get update
|
||||||
chroot "${rootdir}" apt-get -yq install nodejs curl
|
chroot "${rootdir}" apt-get -yq install nodejs curl
|
||||||
|
|
||||||
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
|
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
|
||||||
|
@ -136,8 +140,12 @@ function install_nodejs {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get -yq install nodejs
|
# Note: this has to be jessie for now
|
||||||
apt-get -yq install npm curl
|
echo "deb https://deb.nodesource.com/node_6.x jessie main" > /etc/apt/sources.list.d/nodesource.list
|
||||||
|
echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -yq install nodejs curl
|
||||||
|
|
||||||
if [ ! -f /usr/bin/nodejs ]; then
|
if [ ! -f /usr/bin/nodejs ]; then
|
||||||
echo $'nodejs was not installed'
|
echo $'nodejs was not installed'
|
||||||
|
|
Loading…
Reference in New Issue