Luke Childs
dff4f80f32
Add fast test to check nvm uninstall with file permission error
9 years ago
Jordan Harband
865d2fe3d6
Include LTS version in `nvm_ls_remote` output.
9 years ago
Robson Peixoto
8fb4ee0789
Unset unnecessary environment variables
9 years ago
Jonas Dohse
7135873f80
Do not modify parameters of sourcing script in zsh
...
When sourcing a script without parameters in zsh the sourced scripts
gets the same parameters as the sourcing file and is able to modify
these parameters. Prevent nvm from removing all parameters of sourcing
script by processing a copy of the parameters in a function.
9 years ago
Thomas Levine
06b81f0f36
use env bash rather than /bin/bash
...
My bash is not installed in /bin/bash.
9 years ago
Jordan Harband
731c2f3f70
Add `nvm_get_minor_version`
9 years ago
Jordan Harband
de64a2d95f
[Fix] `nvm_format_version` should only return 3 version groups
9 years ago
Jordan Harband
f279837d5c
[Refactor] fix some bugs in `nvm_is_natural_num`, add unit tests.
9 years ago
Jordan Harband
32d184099c
[Tests] fix cleanup in nvm_supports_xz unit test
9 years ago
Peter Dave Hello
ec9232bb06
update nodejs.org-dist-index.tab and related test
...
Src: https://iojs.org/dist/index.tab
9 years ago
Jordan Harband
149e5d483d
Use real snapshot of iojs.org data for `nvm_ls_remote_iojs` tests.
9 years ago
Jordan Harband
114f27a075
Use `nvm_ls_remote_index_tab` for listing nodejs.org versions.
...
Enabled by https://github.com/nodejs/build/issues/218 , unblocks #870 .
9 years ago
Johan Bergström
b8e4917646
Use `xz` tarballs if available
...
Saves us ~25% bandwidth while downloading the payload. This only applies
to hosts that has the `xz` binary and attempts to use iojs 2.3.2 or newer
(this includes nodejs 4.0+ as well). Older targets are unaffected.
9 years ago
Julien Gilli
2d692d9d78
Fix support for installing node on SmartOS
...
uname on SmartOS cannot be used to guess if 32 and/or 64 bits binaries
are supported, and its output is different than other uname commands on
other operating systems.
This change uses pkg_info to determine what types of binaries pkgsrc
would install. If pkg_info fails to run or is not present, this change
falls back to using isainfo -n, which determines what the kernel
supports.
It allows users to install node binaries on Solaris derivatives. io.js
can also be installed on Solaris derivatives starting with version
v3.3.1.
10 years ago
Jordan Harband
8ee6f30352
Add support for `$NPM_CONFIG_PREFIX` to `nvm_die_on_prefix`.
...
Fixes #606 .
10 years ago
Jordan Harband
1458de7293
Ensure that if `npm config get prefix` is set to something outside `nvm`, that `nvm use` refuses to work.
...
Fixes #606 .
10 years ago
Jordan Harband
a1def71062
Add `nvm_die_on_prefix`
10 years ago
Jordan Harband
643365a948
Allow `--silent` option to `nvm use` to be in any position.
10 years ago
Jordan Harband
e3528b0d9e
Fix `nvm_ensure_version_installed iojs` to not print an empty string for the version.
10 years ago
Jordan Harband
f34fef96d8
Add `nvm_is_merged_node_version`
10 years ago
Jordan Harband
8746d63041
Ensure after node v4.0 is released, `stable` will simply refer to the latest node.
10 years ago
Alan Quach
657192dd27
Adding unit tests for --silent
10 years ago
Jordan Harband
cbf0f12aac
Create `nvm_print_npm_version` and use that when printing the `npm` version.
10 years ago
Andrew Crites
caa69bc500
npm version: shell compatibility, test update
...
* Update test string that checks printed node version to pass with additional npm version display
* Remove echo -n for compatibility with shells that do not support it
10 years ago
Jordan Harband
c34502ebc2
`nvm_num_version_groups` should report 0 when given just a v or a .
10 years ago
Jordan Harband
3d764e6833
Add `nvm_ensure_default_set`
10 years ago
Jordan Harband
82393f5b36
Making sure this test passes whether a system node is installed or not.
10 years ago
Jordan Harband
2b63f37f8d
Make `nvm_resolve_local_alias` not return `N/A` - that should be done as shallowly as possible.
10 years ago
Jordan Harband
0d9329435c
Create `nvm_ensure_version_installed`
10 years ago
Jordan Harband
a0d04d0b6b
Preventing an unalias error in tests.
10 years ago
Jordan Harband
7d22e0c458
Separate `nvm_resolve_alias`'s `nvm_version` behavior into `nvm_resolve_local_alias`.
10 years ago
Jordan Harband
12ca8f2607
Add `nvm_is_alias` unit tests.
...
Fixes 670.
10 years ago
Jordan Harband
3190effedd
Add support for `node` and `iojs` implicit aliases.
10 years ago
Jordan Harband
2116d2ff91
Filter out the io.js version dir from nvm_ls output.
...
Fixes #642 .
10 years ago
Jordan Harband
e1b7496cf0
Add nvm_is_valid_version
10 years ago
Jordan Harband
24c60e4e51
Fix a bug in nvm_remote_version that was breaking `nvm install stable`/`nvm install unstable`.
...
Fixes #630 .
10 years ago
Tobias Witt
cba5094652
Provide test case for testing the `noclobber` option from zsh
...
This tests the absence of the bug from #615
10 years ago
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.
10 years ago
Jordan Harband
6cac732141
Including this omitted test.
10 years ago
Jordan Harband
f1f11e3b7a
Ensure `nvm_version node` and `nvm_version node-` report the latest stable node version.
10 years ago
Jordan Harband
dbeeb683da
Fix `nvm_strip_path` for >= v0.12.0 node, and all io.js versions.
10 years ago
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.
10 years ago
Jordan Harband
3cf68dc18d
Add `nvm_has_system_iojs`
10 years ago
Jordan Harband
0ad5a450fe
Put node versions >= 0.12 in `versions/node` instead of just `versions`
10 years ago
Jordan Harband
d5e21be164
Add `nvm_ensure_version_prefix` unit tests.
10 years ago
Jordan Harband
58ab2c3128
Add iojs support to `nvm_remote_version`
10 years ago
Jordan Harband
d70f0357f5
Add `nvm_ls_remote_iojs` and `nvm ls-remote` support for iojs.
10 years ago
Jordan Harband
5c336a7ccb
Make `nvm_print_versions` support iojs via `nvm_version_path`.
10 years ago
Jordan Harband
f661617f1c
Make `nvm_ls foo` work with `iojs`-prefixed version strings.
10 years ago
Jordan Harband
d28703f9e0
Update `nvm_ensure_version_prefix` to support `iojs`-prefixed version strings.
10 years ago