Skip to content
Myr

Fix npm update code

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

https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh so this code would fail if it ever npm was absent when we get here.

authored by Hiro Asari · committed by Hiro Asari · parent d49443e · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
673 unmodified lines
674 elif nvm_version_greater_than_or_equal_to "$VERSION" 0.2.0; then675 if nvm_version_greater 0.2.3 "$VERSION"; then676 echo "npm requires node v0.2.3 or higher" >&2677 else678 nvm_download https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh678 nvm_download -L https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh679 fi680 else681 nvm_download https://npmjs.org/install.sh -o - | clean=yes sh681 nvm_download -L https://npmjs.org/install.sh -o - | clean=yes sh682 fi683 fi684 else685 echo "nvm: install $VERSION failed!" >&2
322 unmodified lines