Remove old npm directory
This commit is contained in:
parent
ff52a2f214
commit
3257c8658f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue