Fixes #487.
parent
273f9d497a
commit
150aea21ec
2
nvm.sh
2
nvm.sh
|
@ -201,7 +201,7 @@ nvm_binary_available() {
|
||||||
|
|
||||||
nvm_ls_current() {
|
nvm_ls_current() {
|
||||||
local NODE_PATH
|
local NODE_PATH
|
||||||
NODE_PATH="$(which node)"
|
NODE_PATH="$(which node 2> /dev/null)"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'none'
|
echo 'none'
|
||||||
elif nvm_tree_contains_path "$NVM_DIR" "$NODE_PATH"; then
|
elif nvm_tree_contains_path "$NVM_DIR" "$NODE_PATH"; then
|
||||||
|
|
Loading…
Reference in New Issue