-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix]
install-latest-npm
: io.js
v1.0.0
has weird behavior with …
…npm v4.6.x.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,8 +199,8 @@ nvm_install_latest_npm() { | |
|
||
if [ $NVM_IS_0_9 -eq 1 ] || [ $NVM_IS_0_6 -eq 1 ]; then | ||
nvm_echo '* node v0.6 and v0.9 are unable to upgrade further' | ||
elif nvm_version_greater 1.0.0 "${NODE_VERSION}"; then | ||
nvm_echo '* `npm` v4.5.x is the last version that works on `node` versions below v1.0.0' | ||
elif nvm_version_greater_than_or_equal_to 1.0.0 "${NODE_VERSION}"; then | ||
nvm_echo '* `npm` v4.5.x is the last version that works on `node` versions <= v1.0.0' | ||
$NVM_NPM_CMD install -g [email protected] | ||
elif nvm_version_greater 4.0.0 "${NODE_VERSION}"; then | ||
nvm_echo '* `npm` v5 and higher do not work on `node` versions below v4.0.0' | ||
|