Skip to content

Commit 61c7b13

Browse files
committed
[Fix] nvm install-latest-npm: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2
1 parent 177a967 commit 61c7b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ nvm_install_latest_npm() {
224224
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`'
225225
$NVM_NPM_CMD install -g [email protected]
226226
elif [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then
227-
nvm_echo '* `npm` `v5.4.x` is the last version that works on `node` `v4.5` and `v4.6`'
228-
$NVM_NPM_CMD install -g [email protected]
227+
nvm_echo '* `npm` `v5.4.1` is the last version that works on `node` `v4.5` and `v4.6`'
228+
$NVM_NPM_CMD install -g [email protected].1
229229
elif [ $NVM_IS_6_OR_ABOVE -eq 0 ]; then
230230
nvm_echo '* `npm` `v5.x` is the last version that works on `node` below `v6.0.0`'
231231
$NVM_NPM_CMD install -g npm@5

0 commit comments

Comments
 (0)