mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Fix issue in copy-packages
$INSTALLS passed as string argument to npm install =>`npm install -g "bower@0.9.2 grunt-cli"` would only install the first package `bower@0.9.2`. Modified that to be `eval "npm install -g $INSTALLS"`.
This commit is contained in:
parent
6c3708d337
commit
0108783c3a
2
nvm.sh
2
nvm.sh
@ -473,7 +473,7 @@ nvm()
|
|||||||
VERSION=`nvm_version $2`
|
VERSION=`nvm_version $2`
|
||||||
ROOT=`nvm use $VERSION && npm -g root`
|
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" " "`
|
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" )
|
"clear-cache" )
|
||||||
rm -f $NVM_DIR/v* 2>/dev/null
|
rm -f $NVM_DIR/v* 2>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user