From eb0a8442d8e6dc74c710352a1082a2ba5ba93747 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 25 Apr 2018 10:08:41 -0700 Subject: [PATCH] [Fix] `nvm install-latest-npm`: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2 --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 4a85ea8..32689da 100644 --- a/nvm.sh +++ b/nvm.sh @@ -224,8 +224,8 @@ nvm_install_latest_npm() { nvm_echo '* `npm` `v5.3.x` is the last version that works on `node` 4.x versions below v4.4, or 5.x versions below v5.10, due to `Buffer.alloc`' $NVM_NPM_CMD install -g npm@5.3 elif [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then - nvm_echo '* `npm` `v5.4.x` is the last version that works on `node` `v4.5` and `v4.6`' - $NVM_NPM_CMD install -g npm@5.4 + nvm_echo '* `npm` `v5.4.1` is the last version that works on `node` `v4.5` and `v4.6`' + $NVM_NPM_CMD install -g npm@5.4.1 elif [ $NVM_IS_6_OR_ABOVE -eq 0 ]; then nvm_echo '* `npm` `v5.x` is the last version that works on `node` below `v6.0.0`' $NVM_NPM_CMD install -g npm@5