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

Always try to uninstall nodejs before installing it

parent a5fe0462
Loading
......@@ -149,9 +149,8 @@ function install_nodejs {
apt-get update
if [ -f /usr/bin/nodejs ]; then
apt-get -yq remove --purge nodejs
fi
apt-get -yq remove --purge nodejs
if [ -d /usr/local/lib/node_modules ]; then
rm -rf /usr/local/lib/node_modules
fi
......@@ -165,7 +164,8 @@ function install_nodejs {
rm /usr/bin/nodejs
fi
apt-get -yq install nodejs curl
apt-get -yq install nodejs
apt-get -yq install curl
if [ ! -f /usr/bin/nodejs ]; then
echo $'nodejs was not installed'
......
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