|
|
|
|
44
|
NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
44
|
NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
45
|
|
45
|
|
46
|
function mesh_install_nodejs {
|
46
|
function mesh_install_nodejs {
|
|
|
47
|
+ # Note: this has to be jessie for now
|
|
|
48
|
+ echo "deb https://deb.nodesource.com/node_6.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
|
|
49
|
+ echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
|
|
50
|
+ chroot "${rootdir}" apt-get update
|
47
|
chroot "${rootdir}" apt-get -yq install nodejs curl
|
51
|
chroot "${rootdir}" apt-get -yq install nodejs curl
|
48
|
|
52
|
|
49
|
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
|
53
|
if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
|
|
|
|
|
136
|
return
|
140
|
return
|
137
|
fi
|
141
|
fi
|
138
|
|
142
|
|
139
|
- apt-get -yq install nodejs
|
|
|
140
|
- apt-get -yq install npm curl
|
|
|
|
|
143
|
+ # Note: this has to be jessie for now
|
|
|
144
|
+ echo "deb https://deb.nodesource.com/node_6.x jessie main" > /etc/apt/sources.list.d/nodesource.list
|
|
|
145
|
+ echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list
|
|
|
146
|
+
|
|
|
147
|
+ apt-get update
|
|
|
148
|
+ apt-get -yq install nodejs curl
|
141
|
|
149
|
|
142
|
if [ ! -f /usr/bin/nodejs ]; then
|
150
|
if [ ! -f /usr/bin/nodejs ]; then
|
143
|
echo $'nodejs was not installed'
|
151
|
echo $'nodejs was not installed'
|