diff --git a/nvm.sh b/nvm.sh index 11e774f..ccd6bc1 100644 --- a/nvm.sh +++ b/nvm.sh @@ -2535,7 +2535,7 @@ nvm() { shift done - if [ -z "$SKIP_DEFAULT_PACKAGES" ] && [ -f "${NVM_DIR}/default-packages" ]; then + if [ -z "${SKIP_DEFAULT_PACKAGES-}" ] && [ -f "${NVM_DIR}/default-packages" ]; then DEFAULT_PACKAGES="" # Read lines from $NVM_DIR/default-packages