We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c873748 commit 543e19fCopy full SHA for 543e19f
Node/npm_update.sh
@@ -14,7 +14,12 @@ if [ -x "$(command -v npm)" ]; then
14
pver="$(cut -d@ -f2 <<<"$npkg")"
15
pkg="$(cut -d@ -f1 <<<"$npkg")"
16
echo "Updating $pkg ($cver-->$pver)"
17
- npm install --global --no-progress --quiet $npkg 1>/dev/null
+ if [[ $npkg =~ "npm" ]]; then
18
+ npm install --force --global --no-progress --quiet \
19
+ $npkg 1>/dev/null
20
+ else
21
+ npm install --global --no-progress --quiet $npkg 1>/dev/null
22
+ fi
23
done
24
else
25
echo "No packages to update"
0 commit comments