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

Remove old npm directory

parent ff52a2f2
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,12 @@ function install_nodejs {
fi
cp /usr/local/bin/node /usr/bin/nodejs
cp /usr/local/bin/node /usr/bin/node
if [ -f /usr/local/lib/node_modules/npm ]; then
rm -rf /usr/local/lib/node_modules/npm
fi
if [ -d /usr/local/lib/node_modules/npm ]; then
rm -rf /usr/local/lib/node_modules/npm
fi
npm install -g npm@${NPM_VERSION} --save
if [ ! -f /usr/local/bin/npm ]; then
exit 3
......
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