Skip to content
Myr

Ensure that `npm` doesn't print out excess data, regardless of the user's log level.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #881.

authored by Jordan Harband · committed by Jordan Harband · parent 149e5d4 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
1350 unmodified lines
1351 return1352 fi13531354 local NVM_NPM_PREFIX1355 NVM_NPM_PREFIX="$(npm config get prefix)"1355 NVM_NPM_PREFIX="$(NPM_CONFIG_LOGLEVEL=warn npm config get prefix)"1356 if ! (nvm_tree_contains_path "$NVM_DIR" "$NVM_NPM_PREFIX" >/dev/null 2>&1); then1357 if [ "_$NVM_DELETE_PREFIX" = "_1" ]; then1358 npm config delete prefix1358 NPM_CONFIG_LOGLEVEL=warn npm config delete prefix1359 else1360 nvm deactivate >/dev/null 2>&11361 echo >&2 "nvm is not compatible with the npm config \"prefix\" option: currently set to \"$NVM_NPM_PREFIX\""1362 if nvm_has 'npm'; then
918 unmodified lines