Add `PREFIX` and `NPM_CONFIG_PREFIX` env vars to `nvm debug`

Jordan Harband 2015-10-01 10:05:13 -07:00
parent 44f416d58f
commit b805de80cb
1 changed files with 3 additions and 1 deletions

4
nvm.sh
View File

@ -1446,7 +1446,9 @@ nvm() {
setopt shwordsplit setopt shwordsplit
fi fi
echo >&2 "\$SHELL: $SHELL" echo >&2 "\$SHELL: $SHELL"
echo >&2 "\$NVM_DIR: $(nvm_sanitize_path "$NVM_DIR")" echo >&2 "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'"
echo >&2 "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'"
echo >&2 "\$NPM_CONFIG_PREFIX: '$(nvm_sanitize_path "$NPM_CONFIG_PREFIX")'"
local NVM_DEBUG_OUTPUT local NVM_DEBUG_OUTPUT
for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g' for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g'
do do