Commit Graph

504 Commits (0aac462b15d7d7357941baf0f053da6168a27180)

Author SHA1 Message Date
Jordan Harband e1b7496cf0 Add nvm_is_valid_version 2015-02-01 13:01:40 -08:00
Jordan Harband 8a87133f71 When there's no `nvm run` output, don't echo an empty line. 2015-02-01 12:45:51 -08:00
Jordan Harband 0792945824 Bypass sha1sum/sha1 aliases. Fixes #640. 2015-01-30 23:46:42 -08:00
Jordan Harband a6819b3018 Fix `nvm ls v1.0.3` so that it locates `iojs-v1.0.3`.
Also fix `nvm uninstall v1.0.3` so it won't uninstall it if it's the current version.

node versions will still take priority if there's ever a version overlap.
2015-01-25 12:31:19 -08:00
Jordan Harband 1eaf6b53e4 v0.23.2 2015-01-23 13:53:03 -08:00
Jordan Harband 24c60e4e51 Fix a bug in nvm_remote_version that was breaking `nvm install stable`/`nvm install unstable`.
Fixes #630.
2015-01-23 12:09:13 -08:00
Jordan Harband 8822bd719a v0.23.1 2015-01-23 02:08:36 -08:00
Tobias Witt b5d9e547f2
Use `tee` to replace the alias files content instead of `>`
As mentioned in #615 it is possible to configure `>` to not override
existing files by default. `tee` is a standard tool that can be used
shell independent.
2015-01-23 09:29:12 +01:00
Jordan Harband dd146519a2 Improve `nvm use` success output for io.js.
Fixes #623
2015-01-21 22:06:38 -08:00
Jordan Harband 7243bd77d3 Refactor and create `nvm_remote_versions` and `nvm_remote_version`.
Fixes #620 - an oh-my-zsh issue where `nvm install v1` didn't work.
2015-01-21 20:48:25 -08:00
Jordan Harband 7d113a2b2f Inline this use of `nvm_remote_version` 2015-01-21 16:27:20 -08:00
Jordan Harband 17df0b9912 Moving the N/A check earlier in `nvm install` 2015-01-21 16:19:22 -08:00
Jordan Harband 9ee864b06f Remove unused variables. 2015-01-20 18:33:51 -08:00
Jordan Harband 43a7d78693 v0.23.0 2015-01-19 22:15:06 -08:00
Jordan Harband ea12784629 Clean up `nvm ls-remote` behavior when one of node/iojs reports N/A.
This change:
 - removes a superfluous N/A
 - fixes the exit code to return 0 unless no version is found
 - enables `nvm install v1` and similar patterns.
2015-01-19 18:35:05 -08:00
Jordan Harband f1f11e3b7a Ensure `nvm_version node` and `nvm_version node-` report the latest stable node version. 2015-01-19 10:05:36 -08:00
Jordan Harband 247bd310ef Clean up `nvm uninstall node` and `nvm uninstall iojs` behavior. 2015-01-19 10:04:12 -08:00
Jordan Harband dbeeb683da Fix `nvm_strip_path` for >= v0.12.0 node, and all io.js versions. 2015-01-18 23:55:26 -08:00
Jordan Harband 39a75e616d Add support for `nvm use node`, `nvm use iojs`, `nvm ls node`, and `nvm ls iojs`
Also add `nvm_version node` and `nvm_version iojs` support.
2015-01-18 20:45:02 -06:00
Jordan Harband 3cf68dc18d Add `nvm_has_system_iojs` 2015-01-18 20:55:48 -06:00
Jordan Harband ed22d3de2d Add support for `nvm install node` and `nvm install iojs` 2015-01-16 11:10:37 -06:00
Jordan Harband 952096d034 Add iojs support to "install" 2015-01-13 17:52:18 -08:00
Jordan Harband dd3a3763ce Add `io.js` support to `nvm uninstall` 2015-01-16 10:41:40 -06:00
Jordan Harband 41c379839d Make sure `nvm run` works with iojs prefixes. 2015-01-15 01:38:47 -08:00
Jordan Harband d9340b6a53 io.js does not have a SunOS binary. 2015-01-13 17:48:15 -08:00
Jordan Harband b0d6c05d6e Make `nvm ls-remote iojs [foo]` only show iojs versions, and `nvm ls-remote node [foo]` only show node versions. 2015-01-13 14:19:58 -08:00
Jordan Harband 58ab2c3128 Add iojs support to `nvm_remote_version` 2015-01-13 02:22:22 -08:00
Jordan Harband d70f0357f5 Add `nvm_ls_remote_iojs` and `nvm ls-remote` support for iojs. 2015-01-13 02:14:29 -08:00
Jordan Harband 5143de9653 Make `nvm_ls_current` work with `iojs`-prefixed versions. 2015-01-13 01:04:45 -08:00
Jordan Harband 5c336a7ccb Make `nvm_print_versions` support iojs via `nvm_version_path`. 2015-01-13 00:49:31 -08:00
Jordan Harband f661617f1c Make `nvm_ls foo` work with `iojs`-prefixed version strings. 2015-01-12 18:16:11 -08:00
Jordan Harband d28703f9e0 Update `nvm_ensure_version_prefix` to support `iojs`-prefixed version strings. 2015-01-12 18:15:51 -08:00
Jordan Harband b7983842aa Add `nvm_add_iojs_prefix` 2015-01-13 00:57:32 -08:00
Jordan Harband c12104cecd Add `nvm_strip_iojs_prefix` 2015-01-12 18:15:25 -08:00
Jordan Harband 98e0655198 Add `nvm_is_iojs_version` 2015-01-12 18:15:15 -08:00
Jordan Harband c46748a379 Add `nvm_node_prefix` 2015-01-13 14:16:35 -08:00
Jordan Harband 8be97c8abb Add `nvm_iojs_prefix` 2015-01-12 18:15:04 -08:00
Jordan Harband 3fa11c35cb Add io.js support to `nvm_version_dir` 2015-01-12 00:33:13 -08:00
Jordan Harband 448bd38a55 v0.22.2 2015-01-14 15:44:40 -08:00
Jordan Harband 0ad5a450fe Put node versions >= 0.12 in `versions/node` instead of just `versions` 2015-01-14 12:23:06 -08:00
Jordan Harband 797c5ab70b Move "install node from source" logic into `nvm_install_node_source` function. 2015-01-13 18:15:42 -08:00
Jordan Harband 0e209ce890 Move "install node binary" logic into `nvm_install_node_binary` function. 2015-01-13 14:08:56 -08:00
Jordan Harband 9a57a891b9 Refactor OS and architecture detection into separate functions. 2015-01-13 02:41:55 -08:00
Jordan Harband 3d5ded1815 Update the way `nvm_ls` sorts things. 2015-01-13 00:21:33 -08:00
Jordan Harband 7807a9f09e Consolidate "alias" directory to a method. 2015-01-12 01:27:53 -08:00
Jordan Harband 835c006b5e Better way to search multiple directories in `nvm_ls` 2015-01-12 01:15:48 -08:00
Jordan Harband 34e51f9f02 Proper quoting and $(…) vs `…`. 2015-01-11 12:13:14 -08:00
Jordan Harband 4b5885d69d Store the version path in a local variable for reuse. 2015-01-11 12:04:26 -08:00
Jordan Harband bf794ff8da Consistently prefix builtins with `command` 2015-01-11 11:53:24 -08:00
Jordan Harband 0bd7372c64 Rename this local var in `nvm_version_dir` 2015-01-11 11:38:55 -08:00
Jordan Harband 0a142b7e7a v0.22.1 2015-01-10 19:43:36 -08:00
Jordan Harband 3fc82d6b2f Use `command sed` for people who alias `sed`.
Fixes #493.
2015-01-09 01:50:05 -08:00
niris 3f5ce8b93a Fix which command in zsh (#604). 2015-01-02 10:20:57 +08:00
Jordan Harband c91e8d0ba2 v0.22.0 2014-12-26 16:30:21 -08:00
Jordan Harband 9a4e9060d8 Don't bother testing --install option on source, or supporting it, unless the shell supports passing options upon sourcing. 2014-12-26 13:33:33 -08:00
Jordan Harband 3df0caefa5 Support `--install` option upon sourcing. 2014-12-26 12:19:35 -08:00
Jordan Harband bef3a5ce3a v0.21.0 2014-12-22 12:03:33 -08:00
Jordan Harband 0a739e3fa9 Add `nvm_get_latest` 2014-12-21 16:33:52 -08:00
Jordan Harband 2d78d69d4c Properly outputting the version when nvm_version_path outputs the new "versions" subdirectory. 2014-12-19 17:12:38 -08:00
Jordan Harband 9e17b5059c Return the proper exit code of `which` directly. 2014-12-19 16:23:27 -08:00
Daniel Bretoi 99ca0de18f revert echoing path. make tests even better 2014-12-19 11:31:46 -08:00
Daniel Bretoi f196ace5dd style 2014-12-19 11:10:50 -08:00
Daniel Bretoi d1a90ca15c work like system which. show system node without changing to use it 2014-12-19 11:10:50 -08:00
Jordan Harband f408d68afc Add `nvmrc` note to `nvm which` blurb. 2014-12-17 01:30:23 -08:00
Daniel Bretoi 7805492bda merge with master 2014-12-02 13:01:37 -08:00
Daniel Bretoi a1c0c34088 fix to proper echo of nvm which. Checkin test which had been left out 2014-12-02 12:58:07 -08:00
Daniel Bretoi 234b925c7a style and remove nvm deactivate in nvm which 2014-12-02 12:40:23 -08:00
Jordan Harband 8964cb46d3 v0.20.0 2014-11-29 11:23:16 -08:00
Jordan Harband 383f39ab61 Global modules should not be requireable, and `npm root -g` should not be in `$NODE_PATH`.
Fixes #586.
2014-11-29 11:22:10 -08:00
Jordan Harband 052743816f $NODE_PATH is special, so this function shouldn't risk clobbering it. 2014-11-28 11:59:45 -06:00
Jordan Harband 7bbcd3a977 v0.19.0 2014-11-23 14:49:38 -08:00
Jordan Harband e728577627 Rename `nvm copy-packages` to `nvm reinstall-packages`, and `--copy-packages-from` install option to `--reinstall-packages-from`
For #341. `nvm copy-packages` and install option `--copy-packages-from` will continue to be supported for for at least a full minor release version.
2014-11-22 13:22:24 -08:00
Jordan Harband c33074cb54 Tweaking formatting of help output; adding `nvm exec` example. 2014-11-22 10:48:12 -08:00
Daniel Bretoi 0c33fd2598 change to use default behavior for which 2014-11-22 08:17:15 -08:00
Daniel Bretoi b63042bd9f forgot to append bin 2014-11-21 16:59:15 -08:00
Daniel Bretoi 382c3aa85e implements nvm which 2014-11-21 16:54:31 -08:00
Jordan Harband 5f5eb47f14 v0.18.0 2014-11-05 10:59:59 -08:00
Jordan Harband d09b84de3c Ensure that a system has `manpath` before invoking it.
Closes #531, fixes #557.
2014-11-02 13:54:54 -08:00
Brock Angelo 1c9a5ba2d8 use slash pwd instead of command 2014-10-25 22:19:27 -05:00
Brock Angelo fd1f2cdf66 use `command -p pwd` to use the system default pwd 2014-10-25 13:55:20 -05:00
Jordan Harband 2d529cc8b7 Prevent attempts to `nvm use` a circular reference. 2014-10-22 18:15:21 -07:00
Jordan Harband 9b91734f0b Show "∞" when there's a circular alias reference. 2014-10-22 18:15:21 -07:00
Jordan Harband 7a339bdd3c Adding nvm_resolve_alias 2014-10-22 01:30:40 -07:00
Jordan Harband e421a0dc5f Ensure nvm follows redirects to nodejs.org 2014-10-20 16:02:46 -07:00
Jordan Harband 601490ac1d Merge tag 'v0.17.3' 2014-10-20 15:50:47 -07:00
Jordan Harband 4748b3a236 v0.17.3 2014-10-20 15:48:49 -07:00
Jordan Harband 2a61569881 http://nodejs.org/dist now redirects to https://nodejs.org/dist 2014-10-20 15:48:35 -07:00
Jordan Harband ca89cceb99 Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on `use`).
Fixes #499.
2014-10-14 18:14:12 -07:00
Hiro Asari 44d5776110 Fix npm update code
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.
2014-10-12 12:28:38 -04:00
Jordan Harband d49443e1fb Properly handle nvm_print_implicit_alias splitting in zsh.
Hopefully fixes #546.
2014-10-11 00:41:16 -04:00
Jordan Harband e99645f402 Don't list uninstalled implicit aliases 2014-10-10 23:46:25 -04:00
Jordan Harband a2633e5980 Fixing "nvm alias" output redirection. 2014-10-09 00:19:14 -07:00
Jordan Harband 1ee708b79b Fix an output redirection error. 2014-10-06 16:18:21 -07:00
Jordan Harband 2f2c6f0727 Use nvm_alias in nvm_ls. 2014-10-02 17:19:21 -07:00
Jordan Harband 0eef553a88 Use `-f` instead of `-e` in nvm_alias. 2014-10-02 16:06:09 -07:00
Jordan Harband 5135577a3c Ensure `nvm run` has the same semantics as `nvm use` 2014-10-01 01:46:46 -07:00
Jordan Harband 5bc6e289ce Silencing nvm_version_path error output in nvm_print_versions 2014-10-01 01:46:35 -07:00
Jordan Harband d0c6b87b2e Use `nvm_alias` in `nvm alias` 2014-09-30 00:24:37 -07:00
Jordan Harband 66b214651f Add `nvm_alias` and unit tests. 2014-09-30 00:23:37 -07:00
Jordan Harband f0471acbf5 v0.17.2 2014-09-29 14:32:44 -07:00