mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Export NODE_PATH to allow requiring global modules
This commit is contained in:
parent
c371a3a26b
commit
09db3501c5
1
nvm.sh
1
nvm.sh
@ -217,6 +217,7 @@ nvm()
|
|||||||
export MANPATH
|
export MANPATH
|
||||||
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
||||||
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
||||||
|
export NODE_PATH="$NVM_DIR/$VERSION/lib/node_modules"
|
||||||
echo "Now using node $VERSION"
|
echo "Now using node $VERSION"
|
||||||
;;
|
;;
|
||||||
"run" )
|
"run" )
|
||||||
|
Loading…
Reference in New Issue
Block a user