|
@@ -149,9 +149,8 @@ function install_nodejs {
|
149
|
149
|
|
150
|
150
|
apt-get update
|
151
|
151
|
|
152
|
|
- if [ -f /usr/bin/nodejs ]; then
|
153
|
|
- apt-get -yq remove --purge nodejs
|
154
|
|
- fi
|
|
152
|
+ apt-get -yq remove --purge nodejs
|
|
153
|
+
|
155
|
154
|
if [ -d /usr/local/lib/node_modules ]; then
|
156
|
155
|
rm -rf /usr/local/lib/node_modules
|
157
|
156
|
fi
|
|
@@ -165,7 +164,8 @@ function install_nodejs {
|
165
|
164
|
rm /usr/bin/nodejs
|
166
|
165
|
fi
|
167
|
166
|
|
168
|
|
- apt-get -yq install nodejs curl
|
|
167
|
+ apt-get -yq install nodejs
|
|
168
|
+ apt-get -yq install curl
|
169
|
169
|
|
170
|
170
|
if [ ! -f /usr/bin/nodejs ]; then
|
171
|
171
|
echo $'nodejs was not installed'
|