mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-12-13 08:34:19 +00:00
also set NODE_PATH environment variable correctly
This commit is contained in:
1
nvm.sh
1
nvm.sh
@@ -216,6 +216,7 @@ nvm()
|
|||||||
hash -r
|
hash -r
|
||||||
export MANPATH
|
export MANPATH
|
||||||
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
||||||
|
export NODE_PATH="$NVM_DIR/$VERSION/lib/node":"$NVM_DIR/$VERSION/lib/node_modules"
|
||||||
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
||||||
echo "Now using node $VERSION"
|
echo "Now using node $VERSION"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user