Skip to content
Myr

[Fix] `nvm install-latest-npm`: npm v6.14.18 can not be installed from npm < v4.4.4

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 abe5e30 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:nvm.sh+4 added
330 unmodified lines
331 ; then332 nvm_echo '* `npm` `v6.9` is the last version that works on `node` `v6.0.x`, `v6.1.x`, `v9.0.x`, `v9.1.x`, or `v9.2.x`'333 $NVM_NPM_CMD install -g npm@6.9334 elif [ $NVM_IS_10_OR_ABOVE -eq 0 ]; then335 if nvm_version_greater 4.4.4 "${NPM_VERSION}"; then336 nvm_echo '* `npm` `v4.4.4` or later is required to install npm v6.14.18'337 $NVM_NPM_CMD install -g npm@4338 fi339 nvm_echo '* `npm` `v6.x` is the last version that works on `node` below `v10.0.0`'340 $NVM_NPM_CMD install -g npm@6341 elif \342 [ $NVM_IS_12_LTS_OR_ABOVE -eq 0 ] \
4045 unmodified lines