Jordan Harband
32d184099c
[Tests] fix cleanup in nvm_supports_xz unit test
9 years ago
Jordan Harband
31457fec3f
[Refactor] `nvm install`: make `-j` and `-s` order-independent.
9 years ago
Peter Dave Hello
cfccf03b3d
add test for install from source
9 years ago
Keiichiro Ui
b76d43e9f8
Fix `nvm-exec` for the commands includes white-spaces
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
Jordan Harband
cb033adc6f
nvm run: use common code path for "ensure version installed"
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
Cristian Consonni
c37dbbecb4
Detect shell type from $SHELL variable instead of .$SHELLrc files
10 years ago
Alan Quach
657192dd27
Adding unit tests for --silent
10 years ago
Jordan Harband
7bce6c6c68
`nvm reinstall-packages` should install the same version it had before.
10 years ago
lukechilds
c1ef31df53
Remove unnecessary nvm use
10 years ago
lukechilds
3b67b3b9bb
Use node instead of nvm run and check v8_use_snapshot in node rather than shell
10 years ago
lukechilds
83466446ce
Added newline to end of ARM test
10 years ago
lukechilds
3214caa4ec
Adding installation test for disabling V8 snapshot on ARM
10 years ago
Jordan Harband
fe044c5e3b
`spawn-sync` now dedupes to the top level with this group of packages.
10 years ago
Jordan Harband
472ba5fc46
Make sure sourcing `nvm.sh` on shells that don't support source options doesn't exit nonzero.
...
Fixes #721
10 years ago
Jordan Harband
a4f89c6223
Make sure to ignore `~/.curlrc` if it exists.
10 years ago
Jordan Harband
bb2fe618cb
The install script only runs in bash.
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
HE Shi-Jun
3d69cf7437
update testcase
10 years ago
HE Shi-Jun
14b23bfa95
fix reinstall-packages test
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
f0d81e2d33
Revert "install: adding some debugging output"
...
This reverts commit c8efe3d28a
.
Conflicts:
install.sh
10 years ago
elliottcable
a216f56443
tests: fail install_script test if npm can't install package
10 years ago
elliottcable
c8efe3d28a
install: adding some debugging output
10 years ago
elliottcable
0717d5f995
install: some tweaks and clean-up
10 years ago
elliottcable
6cfc309336
install: Pass global-module check in the absence of npm
10 years ago
elliottcable
4ba7ee5797
install: Show a warning when global packages exist
10 years ago
Jordan Harband
be56ff3b2e
Make sure multiple `nvm run` arguments get passed through to node/iojs properly.
...
Fixes #641 .
10 years ago
Jordan Harband
2116d2ff91
Filter out the io.js version dir from nvm_ls output.
...
Fixes #642 .
10 years ago
Jordan Harband
0b4c1e14cf
Ensure that `nvm run 0.12 --version` errors out sensibly when 0.12 isn't installed.
10 years ago