export NODE_PATH on nvm use

master
Tarcisio Gruppi 2013-12-31 22:35:19 -02:00
parent bc4c5644f5
commit 4d2faba9af
No known key found for this signature in database
GPG Key ID: 36F5005FCAF5C057
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -421,6 +421,7 @@ nvm() {
export MANPATH
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
export NVM_BIN="$NVM_DIR/$VERSION/bin"
export NODE_PATH="$NVM_DIR/$VERSION/lib/node_modules"
echo "Now using node $VERSION"
;;
"run" )