mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge de16f04e9c
into 6c3708d337
This commit is contained in:
commit
29bd9677f9
2
nvm.sh
2
nvm.sh
@ -473,7 +473,7 @@ nvm()
|
||||
VERSION=`nvm_version $2`
|
||||
ROOT=`nvm use $VERSION && npm -g root`
|
||||
INSTALLS=`nvm use $VERSION > /dev/null && npm -g -p ll | grep "$ROOT\/[^/]\+$" | cut -d '/' -f 8 | cut -d ":" -f 2 | grep -v npm | tr "\n" " "`
|
||||
npm install -g $INSTALLS
|
||||
eval npm install -g $INSTALLS
|
||||
;;
|
||||
"clear-cache" )
|
||||
rm -f $NVM_DIR/v* 2>/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user