(Soreλ\a)
0f26656c2c
npm -> nvm, and minor formatting issues
9 years ago
(Soreλ\a)
79d62fb16d
Improve error messages for missing versions
...
`nvm use`, `nvm run` and others check if the version is installed before executing Node, but the error message could be clearer on what steps the user has to take to achieve what they want, this makes that clearer.
9 years ago
Jordan Harband
42fedf6bc9
[Tests] add some basic `nvm use --lts` tests
9 years ago
Peter Dave Hello
07bb79f405
Use `case` instead of multiple if/else statement.
9 years ago
Jordan Harband
c4be39b8be
[Fix] remove the need for `sed -E`
...
Fixes #1126
9 years ago
Jordan Harband
bcb1f0b1c7
`nvm ls-remote`: skip io.js lookup when LTS is set.
9 years ago
Jordan Harband
c3b16603c0
`nvm uninstall`: add `--lts` support
9 years ago
Jordan Harband
e1fdd316b7
[Refactor] create `nvm_grep` and remove standalone `GREP_OPTIONS` line.
9 years ago
Jordan Harband
9f5322ee84
v0.31.2
9 years ago
Jordan Harband
b0244a133b
[Fix] `nvm ls`: avoid use of `maxdepth` which is not on Solaris/SmartOS
...
Fixes #1121 .
9 years ago
Jordan Harband
4060de5285
[New] enable io.js and node 4+ source installs.
...
- consolidate `nvm_install_iojs_source` and `nvm_install_node_source` into `nvm_install_source`
9 years ago
Jordan Harband
715bb59c3b
Adapt `nvm_install_iojs_source` to support specifying `make` jobs.
9 years ago
Jordan Harband
9b8eab3163
[New] Add `nvm install -s iojs` support.
9 years ago
Jordan Harband
e546149f7b
[New] add `nvm cache` with “dir” and “clean” commands.
...
- cache the nvm cache on travis
9 years ago
Jordan Harband
57c2004ab2
[Breaking] adapt `nvm_install_node_binary` to `nvm_install_binary`, eg, io.js too.
...
- `nvm_get_checksum` now accepts 5 args (from 3): flavor (node/iojs), type (binary/source), version, slug, compression (xz/gz)
- `nvm_install_binary` accepts 3 args (from 2): flavor (node/iojs), kind (std), version
- remove `nvm_install_iojs_binary`
9 years ago
Jordan Harband
2214cb7ad7
[Breaking] cache previously downloaded artifacts for source installs
...
- `nvm uninstall` no longer removes source artifacts
9 years ago
Jordan Harband
ba3ad8e460
[Breaking] cache previously downloaded artifacts for binaries
...
- consolidate `nvm_install_merged_node_binary` with `nvm_install_node_binary`
- add `nvm_get_download_slug`, `nvm_download_artifact`
- `nvm uninstall` no longer removes artifacts
9 years ago
Jordan Harband
eba50de75e
Add `nvm_compare_checksum`, `nvm_compute_checksum`, and `nvm_get_checksum`
9 years ago
Jordan Harband
36b1ea9236
[Fix] do not print help text on sourcing when an empty .nvmrc file is found.
...
Fixes #1113 .
9 years ago
Jordan Harband
45ae48df2d
[Fix] `nvm install -s`: when “core id” doesn’t appear in /proc/cpuinfo, fall back to counting “processor” lines.
...
Fixes #1115 .
9 years ago
ra100
b6481583af
On aarch64 use arm64 packages
9 years ago
Jordan Harband
03cf6950ce
[shellcheck] remove use of `expr`
9 years ago
Jordan Harband
251a2f3409
[Fix] ensure `uname` is unaliased.
...
Closes #1105
9 years ago
Stephan DONIN
f62747c29c
[Fix] `set -u`: is variable set test
9 years ago
Jordan Harband
ccde2898f8
[help] Add `nvm ls-remote <version>`.
...
Fixes #1094 .
9 years ago
Jordan Harband
6e18d959c7
[shellcheck] clean up unquoted args etc
9 years ago
Jordan Harband
6dd6a0d213
[Fix] `dash` does not support string substitution :-(
9 years ago
Jordan Harband
36c65d7115
[shellcheck] add spellcheck override comments
9 years ago
Jordan Harband
ec2f450b6e
v0.31.1
9 years ago
Jordan Harband
eeaddf9ab0
Don’t restrict colors to TTYs.
...
This restriction prevents subcommands from producing colors and passing them up the tree to the actual TTY.
9 years ago
Jordan Harband
0880539972
`nvm_strip_path`: Error out when `$NVM_DIR` is not set.
...
Per https://github.com/creationix/nvm/issues/1083#issuecomment-217752185
9 years ago
Jordan Harband
6311a0e9c4
`nvm ls`/`nvm alias`/`nvm ls-remote`: only colorize when colors are supported.
9 years ago
Jordan Harband
bc3d028152
`nvm alias`: colorize output when creating aliases.
9 years ago
Jordan Harband
fc82742a8b
[Robustness] add a missing `command` to a `sed` call
9 years ago
Jordan Harband
a94ade8ec2
[Fix] don’t use bash `==` in conditionals
9 years ago
Jordan Harband
eb329ae7a9
[minor] display `chmod` command as well to fix file permissions.
9 years ago
Jordan Harband
1ca2aa648f
[minor] Echo nonwritable file path to stderr.
9 years ago
Jordan Harband
f49eb61f8e
[Improvement] Use `nvm_sanitize_path` in `nvm_check_file_permissions`.
9 years ago
Jordan Harband
d1962c6742
[Refactor] clean up `nvm_sanitize_path`
9 years ago
Jordan Harband
06c1cfcd85
[Refactor] avoid some pipes to `awk`
9 years ago
Jordan Harband
8a138d98ed
[Refactor] Use `awk` to improve version comparison performance
9 years ago
Jordan Harband
4842641e78
[Refactor] create `nvm_echo` and `nvm_err`
9 years ago
Jordan Harband
62cca4e6d8
Prefer `nvm --help` over `nvm help`
9 years ago
Jordan Harband
ab49a5b0c3
[refactor] `nvm run`: call through to `nvm exec` to remove redundant code
9 years ago
Jordan Harband
a69f9a8898
[fix] `nvm run`: pass through `--silent` on bare `nvm run`
9 years ago
Jordan Harband
e8355e3189
[refactor] `nvm run`: refactor argument parsing.
9 years ago
Jordan Harband
0d62626ac6
[refactor] `nvm exec`: refactor argument parsing.
9 years ago
Jordan Harband
6fb94e0dab
[fix] `nvm exec`: show “io.js” for io.js versions.
9 years ago
Jordan Harband
0dd2846215
[fix] `set -e`: ensure `nvm_version` returning 3, and `nvm_alias` returning 2, doesn’t terminate the process.
9 years ago
Jordan Harband
859be3f6a1
`nvm run`: add `--lts`/`--lts=argon` support
9 years ago