Remove old npm directory
This commit is contained in:
parent
4a67b64d35
commit
ff52a2f214
|
@ -176,6 +176,12 @@ function install_nodejs {
|
||||||
npm install -g minimatch@3.0.3 --save
|
npm install -g minimatch@3.0.3 --save
|
||||||
|
|
||||||
# second npm install attempt seems necessary
|
# second npm install attempt seems necessary
|
||||||
|
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
|
npm install -g npm@${NPM_VERSION} --save
|
||||||
cp /usr/local/bin/npm /usr/bin/npm
|
cp /usr/local/bin/npm /usr/bin/npm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue