Skip to content

Commit fa9c505

Browse files
committed
[Fix] nvm install-latest-npm: fix for node 4.5/4.6.
1 parent 4846d57 commit fa9c505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ nvm_install_latest_npm() {
212212
); then
213213
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`'
214214
$NVM_NPM_CMD install -g [email protected]
215-
elif $NVM_IS_4_4_OR_BELOW -eq 0 && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then
215+
elif [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then
216216
nvm_echo '* `npm` `v5.4.x` is the last version that works on `node` `v4.5` and `v4.6`'
217217
$NVM_NPM_CMD install -g [email protected]
218218
else

0 commit comments

Comments
 (0)