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 |
Jordan Harband
|
2737a95645
|
Create nvm_ensure_version_prefix, and make nvm_format_version actually format the version.
|
2014-09-29 01:36:02 -07:00 |
Jordan Harband
|
4cdf356cdc
|
Support `nvm ls-remote stable` and `nvm ls-remote unstable`
|
2014-09-29 00:10:06 -07:00 |
Jordan Harband
|
c918e570b6
|
Add support for `nvm ls stable` and `nvm ls unstable`
|
2014-09-29 00:09:48 -07:00 |
Jordan Harband
|
5dc7af6285
|
Make `nvm alias` list implicit "stable" and "unstable" aliases when they're not already aliases.
|
2014-09-29 00:09:17 -07:00 |
Jordan Harband
|
5aad535d53
|
Adding nvm_print_implicit_alias
|
2014-09-28 22:40:17 -07:00 |
Jordan Harband
|
fcdd1ef431
|
Add nvm_validate_implicit_alias
|
2014-09-28 22:36:02 -07:00 |
Jordan Harband
|
ff92ba7f43
|
Silence more secondary "deactivate" output.
|
2014-09-28 16:50:50 -07:00 |
Jordan Harband
|
804f2759f8
|
Ensure that `nvm use` works when .nvmrc contains "system"
|
2014-09-28 16:50:50 -07:00 |
Jordan Harband
|
d5fe657382
|
Ensure `nvm_rc_version` always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs.
|
2014-09-28 16:50:50 -07:00 |
Jordan Harband
|
3e4613fd66
|
Don't output `nvm deactivate` output when running `nvm use system`
|
2014-09-28 16:50:50 -07:00 |
Jordan Harband
|
b707d8b072
|
nvm_ls: format the version immediately, so that `nvm ls 0.0.1` doesn't return `nvm ls 0.0.10`
|
2014-09-28 10:14:27 -07:00 |
Jordan Harband
|
25bd2bb018
|
Make `nvm ls-remote` return nvm_ls_remote's exit code.
|
2014-09-28 09:41:02 -07:00 |
Jordan Harband
|
4a8a5a1180
|
Shell-quoting some more things.
|
2014-09-27 17:30:09 -07:00 |
Jordan Harband
|
145da7eef8
|
v0.17.1
|
2014-09-26 23:22:56 -07:00 |
Jordan Harband
|
4cf56ae186
|
Remove unnecessary local var declaration. Fixes #535
|
2014-09-26 23:22:38 -07:00 |
Jordan Harband
|
53f9841c6c
|
v0.17.0
|
2014-09-24 14:58:07 -07:00 |
Jordan Harband
|
444efdb08b
|
Adding some more quotes and $()
|
2014-09-23 23:51:02 -07:00 |
Jordan Harband
|
6fde379707
|
Use _ instead of ~ as a sentinel
|
2014-09-23 23:50:12 -07:00 |
Jordan Harband
|
ce69c8413e
|
More shellcheck recommendations
|
2014-09-23 23:49:51 -07:00 |
Jordan Harband
|
51f6109f8d
|
Use $() instead of backticks; add quotes
|
2014-09-23 23:49:10 -07:00 |
Jordan Harband
|
34b97bf76d
|
Adding shell var quotes in `nvm alias`
|
2014-09-23 17:23:37 -07:00 |
Jordan Harband
|
b962a590a2
|
Removing an extra mkdir -p
|
2014-09-23 17:23:09 -07:00 |
Jordan Harband
|
486d14f5f8
|
Copy packages when applicable, whenever `nvm install` would normally `nvm use` and exit.
|
2014-09-21 18:25:15 -07:00 |
Jordan Harband
|
622fdd2cd0
|
Error out early if the --copy-packages-from version is invalid.
|
2014-09-21 18:03:11 -07:00 |
Jordan Harband
|
eddbe15ee8
|
Extract --copy-packages-from argument.
|
2014-09-21 18:03:11 -07:00 |
Jordan Harband
|
2e161fe414
|
nvm install: Remove this redundant "already installed" check.
|
2014-09-21 11:22:05 -07:00 |
Jordan Harband
|
a42b90d215
|
Adding some helpful output to `nvm copy-packages`
|
2014-09-21 11:02:03 -07:00 |
Jordan Harband
|
7fd6d05426
|
Instead of using expr to check if paths need cleaning, compare cleaned paths to original paths and export appropriately.
|
2014-09-19 10:10:53 -07:00 |
Jordan Harband
|
5ef092b2c8
|
Using `nvm_version_greater` and `nvm_version_greater_than_or_equal_to` instead of `expr` in `nvm install`.
|
2014-09-19 10:10:37 -07:00 |
Jordan Harband
|
cb6456fd85
|
Using `nvm_version_greater_than_or_equal_to` instead of `nvm_version_greater` where it increases readability.
|
2014-09-19 10:10:01 -07:00 |
Jordan Harband
|
991fb85047
|
Adding `nvm_version_greater_than_or_equal_to`
|
2014-09-19 10:09:45 -07:00 |
Jordan Harband
|
c992b1766c
|
Use `nvm_num_version_groups` in `nvm_ls`
|
2014-09-16 09:03:47 -07:00 |
Jordan Harband
|
4b2bc0be08
|
Adding `nvm_num_version_groups`
|
2014-09-16 09:03:47 -07:00 |
Jordan Harband
|
e186fa27a7
|
Use `nvm_version_greater` in `nvm_binary_available`
|
2014-09-15 09:20:47 -07:00 |
Jordan Harband
|
f6e0104685
|
Use `nvm_normalize_version` in `nvm_version_greater`
|
2014-09-15 09:17:41 -07:00 |
Jordan Harband
|
d5d66c34d9
|
If there's no "default" specified, fall back to an .nvmrc file.
|
2014-09-15 07:54:30 -07:00 |
Jordan Harband
|
152904e3fb
|
Return a nonzero exit code from nvm_rc_version when no .nvmrc found
|
2014-09-15 07:51:00 -07:00 |
Jordan Harband
|
64de890d07
|
v0.16.1
|
2014-09-14 22:24:18 -07:00 |
Jordan Harband
|
3d3145f2e0
|
install: don't output "additional options" when there are none.
|
2014-09-14 16:04:51 -07:00 |
Jordan Harband
|
4c948cf422
|
install: Ensure that if a version is not provided, we don't try to shift a nonexistent argument.
|
2014-09-14 16:04:37 -07:00 |
Jordan Harband
|
f8054d5cae
|
copy-packages: ensure that `nvm_version` is also applied to compare the provided version to the current one.
|
2014-09-14 16:04:25 -07:00 |
Jordan Harband
|
d1b6332bbe
|
v0.16.0
|
2014-09-11 00:58:09 -07:00 |
Jordan Harband
|
687df82107
|
Make `nvm copy-packages system` work.
|
2014-09-05 00:43:12 -07:00 |
Jordan Harband
|
ff1781b95d
|
Make `nvm copy-packages` refuse to copy packages from the currently activated version.
|
2014-09-05 00:42:59 -07:00 |
Jordan Harband
|
110e571c34
|
Make `nvm ls system` work.
|
2014-09-05 00:29:20 -07:00 |
Jordan Harband
|
9d96e4a6bf
|
v0.15.0
|
2014-09-03 00:08:53 -07:00 |
Jordan Harband
|
214ce8853b
|
`npm ls` has a bug in some versions when "--parseable --depth=0" is used together.
|
2014-09-02 15:47:45 -07:00 |
Jordan Harband
|
603253b0cb
|
Quote the version.
|
2014-08-29 00:12:16 -07:00 |
Jordan Harband
|
5ee955bb62
|
Remove unused $ROOT variable.
|
2014-08-29 00:12:02 -07:00 |
Jordan Harband
|
4b3d6f1760
|
Properly pass a space-separated list of packages to `npm install`
Fixes #490.
|
2014-08-22 02:44:04 -07:00 |
Jordan Harband
|
56c40cfa3c
|
Don't try to copy `npm` itself with `nvm copy-packages`.
Fixes #504.
|
2014-08-22 02:19:56 -07:00 |
Jordan Harband
|
d24dc662dc
|
Merge pull request #512 from kevinwang/shasum-lowest-priority
Make shasum the lowest priority checksum command.
|
2014-09-02 00:36:17 -07:00 |
stelcheck
|
59939d09e8
|
* Make the creation of a symlink an overridable default behaviour
|
2014-08-28 22:45:07 +09:00 |
Jordan Harband
|
f9769e40dd
|
v0.14.0
|
2014-08-27 00:49:30 -07:00 |
Jordan Harband
|
5048a78376
|
Add special handling for node v0.6.21-pre
|
2014-08-26 23:53:17 -07:00 |
Kevin Wang
|
814319d7c0
|
Make shasum the lowest priority checksum command.
This fixes false "Checksums do not match" errors on systems where shasum
is a symlink to sha256sum or otherwise.
|
2014-08-27 00:06:41 -05:00 |
Jordan Harband
|
150aea21ec
|
Fixes #487.
|
2014-08-21 16:51:24 -07:00 |
Jordan Harband
|
5c7f08843d
|
Add error checking to nvm_tree_contains_path
|
2014-08-21 17:15:53 -07:00 |
Jordan Harband
|
b59ecb9e11
|
Make sure the new `versions` directory is filtered out of nvm_ls output (in zsh).
|
2014-08-21 23:39:40 -07:00 |