Matt Calthrop
49e806c77a
[readme] Add macOS troubleshooting instructions for M1 chip
2021-01-21 20:45:12 +00:00
Brandon L. Reiss
3243f7a082
[Fix] Fix potential unbound var error on nvm install
...
Fixes #2420 . When using `nvm install` with an already installed
version, Bash (and potentially other shells) may emit an unbound
variable error when `set -u` is set. The presence of the error depends
on specific shell versions, but appears to happen in MacOS 11.1 (Big
Sur) using a recent Bash version installed via Homebrew (as of this
writing).
The fix accesses `ALIAS` correctly for the case where it is not set by
an `alias` option to `nvm install`.
2021-01-27 13:12:17 -05:00
Jordan Harband
015623ee6d
[Fix] avoid parse error with common omz global aliases, in `nvm_print_color_code`
...
Merge pull request #2365 from hosamaly/patch-1
2021-01-20 13:47:17 -08:00
nmarghetti
502089ae30
[New] install script: Allow installation from other repository also for git method
2021-01-14 00:10:19 +01:00
nmarghetti
589c2377fb
[Fix] install script: sync `nvm_download` implementation from nvm.sh
2021-01-13 02:26:38 +01:00
nmarghetti
60e78d3ec1
[Tests] Add unit test for nvm_download
2021-01-13 02:26:38 +01:00
nmarghetti
9f3397afa4
[Tests] add `nvm_grep` to install script, fix tests
2021-01-08 18:54:40 +01:00
Jordan Harband
436cda247e
[Fix] remove `nvm_supports_source_options`
...
Fixes #2387
2021-01-07 13:00:26 -08:00
nmarghetti
9849bf494d
[meta] Rename some files to be more cross platform
2021-01-04 00:49:05 +01:00
nmarghetti
4e9df33cb7
[New] install script: Allow installation from other repository
2020-12-27 10:09:29 +01:00
hjoshi123
f3fa157456
[Fix] `bash_completion`: move compinit before bashcompinit
2020-12-29 08:35:08 +05:30
hjoshi123
6982dee071
[Docs]: Updated README.md to include homebrew unsecure dirs warning
...
Closes #2361 .
2020-12-22 17:29:32 +05:30
Hosam Aly
31c5c5c45a
[Fix] avoid parse error with common omz global aliases, in `nvm_print_color_code`
...
Fixes #2362 . Fixes #2372 .
2020-11-27 23:17:07 +00:00
Dena Burd
2fea55fdb5
[Tests] add test that fails without fix for #2362
2021-01-15 14:07:47 -08:00
Shiming
10399ed1bd
[Docs] source `./nvm.sh` instead of `nvm.sh`, for `zsh`
...
Fixes #2204 .
2020-04-27 16:11:09 +08:00
Jordan Harband
3c079f16c7
[shellcheck] fix silly shellcheck complaint
2020-12-21 23:47:25 -08:00
Jordan Harband
e76b2945c5
[Fix] relax `$PREFIX` checking, to accomodate `npm exec`
...
Fixes #2379 .
2020-12-21 23:03:30 -08:00
DeeDeeG
4b1100e515
[New] `nvm_supports_xz`: Add Mac/FreeBSD xz platform support checks
...
macOS only supports extracting xz tarballs with `tar` in 10.9 and up.
GNU tar needs an `xz` executable on the `PATH` to extract xz tarballs.
(These are the most common variants of tar, so until further testing
is done, conservatively assume all variants of tar (other than the one
shipped with macOS) need an xz executable on the PATH in order to
decompress xz tarballs.)
Fixes #2155 .
2020-01-29 16:20:15 -05:00
Bram Wubs
f6d11bae41
[readme] Fix fish load_nvm function
2020-07-07 08:29:00 +02:00
Marcus Kazmierczak
d2d232ea2b
[readme] Update macOS troubleshooting w/ 10.15 zsh default
...
The default shell for macOS 10.15 is now zsh, by default a .zshrc file
is not created, so switch instruction for touch ~/.zshrc
2020-06-24 11:02:01 -07:00
Connor Leech
7b3af45cf7
[readme] Update install instructions troubleshooting
...
This is in response to a popular stack overflow answer that has helped people resolve the "command not found" hiccup: https://stackoverflow.com/a/17707224/2031033
Also mentioned here: https://github.com/nvm-sh/nvm/issues/748
2020-05-25 07:36:40 -07:00
Peter Dave Hello
bac5393e12
[Docs] Syntax highlight for Ansible task example in README.md
2020-05-29 21:01:47 +08:00
Szymon Dzialowski
2d4e877b61
[readme] Stop removing spaces from nvm_path
...
It breaks switching version of node through nvm in directories with space somewhere in it's path.
2020-06-10 18:28:14 +01:00
Jordan Harband
6575b6b052
[Fix] `install`: improved arg parsing around `--reinstall-packages-from`
...
Fixes #1762
2020-06-04 16:15:39 -07:00
Bruce A. MacNaughton
33fa27dabe
[Docs] Update README for environment variables
2020-02-07 12:01:57 -08:00
Sehrope Sarkuni
91a55dd91a
[Refactor] Rename solaris and iojs helper functions to be nvm_ prefixed
...
Renames node_version_has_solaris_binary and nvm_iojs_version_has_solaris_binary
to be prefixed with nvm_ so they do not show up in tab completion following the
word "node".
2020-05-08 16:08:27 -04:00
Jordan Harband
7aba64a2d5
[meta] further TOC action tweaks
2020-04-29 20:18:40 -07:00
Jared Ramirez
dcc8059ef8
[readme] include deeper integration instructions for fish
2020-04-29 15:25:23 -07:00
Jordan Harband
8e1e5df059
[meta] fix TOC action
2020-04-29 15:13:30 -07:00
Jordan Harband
e0ed1eacfd
[meta] add actions: Automatic Rebase for PRs, auto-update-TOC for push
2020-04-29 12:06:01 -07:00
Peter Dave Hello
73438e339e
Update Dockerfile base image to Ubuntu 16.04, cc #2008
2020-03-30 02:17:28 +08:00
Magnus Markling
b02617028f
[Tests] Source nvm.sh before defining FILE
2020-03-19 12:13:29 +01:00
Jordan Harband
f607f2f783
[Fix] `reinstall-packages`: do not include unmet peer deps
...
Closes #1948 .
2020-03-10 23:51:17 -07:00
Jordan Harband
258938ef66
v0.35.3
2020-03-05 23:13:56 -08:00
Jordan Harband
096ba0d8c3
`uninstall`: add `NVM_DEBUG` to print out a filename as its permissions are checked
2020-03-05 17:40:17 -08:00
Jordan Harband
4626d1aae6
[New] add `lts/-1` etc, to point to an LTS line relative to "latest"
2020-03-04 01:03:36 -08:00
Jordan Harband
c372ff03e0
[Tests] update mocks
2020-03-04 00:44:35 -08:00
Jordan Harband
30cd9c5dc8
[Tests] fix update mocks script
2020-03-04 00:57:58 -08:00
Jordan Harband
b9536327ae
[Fix] `nvm ls-remote`: properly label latest LTS versions instead of just the latest one in the filter
...
Fixes #2166
2020-02-21 21:27:13 -08:00
Jordan Harband
e609091a55
[Tests] update test mocks
2020-02-22 09:06:59 -08:00
flip111
8093dbeacd
[readme] add nvm intro
...
Closes #2149 .
2020-01-23 20:32:07 +01:00
Jordan Harband
4cd6b4822c
[Tests] try to make `nvm unload` test more robust
2020-02-09 06:41:52 -10:00
Bruce A. MacNaughton
6c560b12b6
[New] `use`: set `NVM_INC` to expose the node include path
2020-02-07 06:23:35 -08:00
Jordan Harband
f4eddb2c9c
[Tests] ensure `nvm unload` unsets env vars too
2020-02-07 09:16:55 -10:00
Jordan Harband
a1ad32e9cb
[readme] restore broken anchor
2020-01-11 18:15:20 -08:00
nebbles
d8785da988
[Docs] Improve readme clarity and troubleshooting
...
Clean up readme structure a bit to help with readability. fix
instructions which could lead to a sourcing loop if misinterpreted.
guidance should direct macos users to simply copy the source snippet
manually into their desired profile file.
Resolve #2123
2019-11-17 14:52:52 +00:00
Lucian Buzzo
4ff9084e99
[Docs] Fix small typo in README
2019-12-05 10:07:38 +00:00
Jordan Harband
f355b327d6
v0.35.2
2019-12-17 22:40:20 -08:00
Jordan Harband
6fa92c82ca
[Fix] if a prefix env var is set (as in npm run), but is correct, do not fail
...
Fixes #2106 .
2019-12-15 23:39:32 -08:00
Jordan Harband
0899839b95
[Tests] pin `david` to v11
...
v11.1.0 and v12 no longer work on node 0.10; v11.1.1 should.
See https://github.com/alanshaw/david/issues/159
2019-12-09 08:51:46 -08:00