Don't try to copy npm itself with nvm copy-packages.

Fixes #504.
This commit is contained in:
Jordan Harband
2014-08-22 02:19:56 -07:00
parent d24dc662dc
commit 56c40cfa3c
2 changed files with 4 additions and 4 deletions

2
nvm.sh
View File

@@ -791,7 +791,7 @@ nvm() {
# declare local INSTALLS first, otherwise it doesn't work in zsh
local INSTALLS
INSTALLS=$(nvm use $VERSION > /dev/null && npm list --global --parseable --depth=0 2> /dev/null | tail -n +2 | \grep -o -e '/[^/]*$' | cut -c 2- | xargs)
INSTALLS=$(nvm use $VERSION > /dev/null && npm list --global --parseable --depth=0 2> /dev/null | tail -n +2 | \grep -o -e '/[^/]*$' | cut -c 2- | \grep -v npm | xargs)
npm install -g --quiet $INSTALLS
;;