mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Fix parse error when invoking copy-packages
This commit is contained in:
parent
dc53a37d4f
commit
25dac48ca0
2
nvm.sh
2
nvm.sh
@ -531,7 +531,7 @@ nvm() {
|
||||
return
|
||||
fi
|
||||
VERSION=`nvm_version $2`
|
||||
local ROOT=`(nvm use $VERSION && npm -g root)`
|
||||
local ROOT="(nvm use $VERSION && npm -g root)"
|
||||
local ROOTDEPTH=$((`echo $ROOT | sed 's/[^\/]//g'|wc -m` -1))
|
||||
|
||||
# declare local INSTALLS first, otherwise it doesn't work in zsh
|
||||
|
Loading…
Reference in New Issue
Block a user