Skip to content

Commit e3d1519

Browse files
committed
[Fix] install-latest-npm: io.js v1.0.0 has weird behavior with npm v4.6.x.
1 parent 6f19bab commit e3d1519

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
@@ -199,8 +199,8 @@ nvm_install_latest_npm() {
199199

200200
if [ $NVM_IS_0_9 -eq 1 ] || [ $NVM_IS_0_6 -eq 1 ]; then
201201
nvm_echo '* node v0.6 and v0.9 are unable to upgrade further'
202-
elif nvm_version_greater 1.0.0 "${NODE_VERSION}"; then
203-
nvm_echo '* `npm` v4.5.x is the last version that works on `node` versions below v1.0.0'
202+
elif nvm_version_greater_than_or_equal_to 1.0.0 "${NODE_VERSION}"; then
203+
nvm_echo '* `npm` v4.5.x is the last version that works on `node` versions <= v1.0.0'
204204
$NVM_NPM_CMD install -g [email protected]
205205
elif nvm_version_greater 4.0.0 "${NODE_VERSION}"; then
206206
nvm_echo '* `npm` v5 and higher do not work on `node` versions below v4.0.0'

0 commit comments

Comments
 (0)