Skip to content
Myr

[Fix] `nvm install-latest-npm`: fix for node 4.5/4.6.

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

authored by Jordan Harband · committed by Jordan Harband · parent 4846d57 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:nvm.sh+1 added-1 removed
210 unmodified lines
211 && nvm_version_greater 5.10.0 "${NODE_VERSION}"\212 ); then213 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`'214 $NVM_NPM_CMD install -g npm@5.3215 elif $NVM_IS_4_4_OR_BELOW -eq 0 && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then215 elif [ $NVM_IS_4_4_OR_BELOW -eq 0 ] && nvm_version_greater 4.7.0 "${NODE_VERSION}"; then216 nvm_echo '* `npm` `v5.4.x` is the last version that works on `node` `v4.5` and `v4.6`'217 $NVM_NPM_CMD install -g npm@5.4218 else219 nvm_echo '* Installing latest `npm`; if this does not work on your node version, please report a bug!'
3326 unmodified lines