Skip to content

Commit b805de8

Browse files
committed
Add PREFIX and NPM_CONFIG_PREFIX env vars to nvm debug
1 parent 44f416d commit b805de8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nvm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,9 @@ nvm() {
14461446
setopt shwordsplit
14471447
fi
14481448
echo >&2 "\$SHELL: $SHELL"
1449-
echo >&2 "\$NVM_DIR: $(nvm_sanitize_path "$NVM_DIR")"
1449+
echo >&2 "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'"
1450+
echo >&2 "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'"
1451+
echo >&2 "\$NPM_CONFIG_PREFIX: '$(nvm_sanitize_path "$NPM_CONFIG_PREFIX")'"
14501452
local NVM_DEBUG_OUTPUT
14511453
for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g'
14521454
do

0 commit comments

Comments
 (0)