Commit Graph

2192 Commits

Author SHA1 Message Date
Ricky Bobby
f9670e18a6 Please enter the commit message for your changes. Lines starting
with '' will be ignored, and an empty message aborts the commit.

 On branch master
 Your branch is up to date with 'origin/master'.

 Changes to be committed:
	new file:   .github/__init__.py
	new file:   .github/workflows/__init__.py
	new file:   .vscode/__init__.py
	new file:   __init__.py
	new file:   test/__init__.py
	new file:   test/fast/Aliases/__init__.py
	new file:   test/fast/Aliases/circular/__init__.py
	new file:   test/fast/Aliases/lts/__init__.py
	new file:   test/fast/Listing paths/__init__.py
	new file:   test/fast/Listing versions/__init__.py
	new file:   test/fast/Set Colors/__init__.py
	new file:   test/fast/Unit tests/__init__.py
	new file:   test/fast/Unit tests/mocks/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-both/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-both/a/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/c/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/c/d/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-n_m/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/c/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/c/d/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-pkg/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/c/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/c/d/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/no-nesting-both/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/no-nesting-n_m/__init__.py
	new file:   test/fast/Unit tests/mocks/project_dirs/no-nesting-pkg/__init__.py
	new file:   test/fast/__init__.py
	new file:   test/install_script/__init__.py
	new file:   test/installation_iojs/__init__.py
	new file:   test/installation_node/__init__.py
	new file:   test/mocks/__init__.py
	new file:   test/slow/__init__.py
	new file:   test/slow/nvm exec/__init__.py
	new file:   test/slow/nvm reinstall-packages/__init__.py
	new file:   test/slow/nvm reinstall-packages/test-npmlink/__init__.py
	new file:   test/slow/nvm run/__init__.py
	new file:   test/slow/nvm uninstall/__init__.py
	new file:   test/slow/nvm use/__init__.py
	new file:   test/slow/nvm_get_latest/__init__.py
	new file:   test/sourcing/__init__.py
	new file:   test/xenial/__init__.py
2024-04-15 20:34:57 +00:00
Ricky Bobby
06174ba58f commit 2024-03-19 15:27:10 +00:00
Ricky Bobby
73fa483c26 Merge branch 'master' of https://github.com/rpreslar4765/nvm 2024-03-18 02:28:53 +00:00
Ricky Bobby
8ff9133361 commit 2024-03-18 02:28:32 +00:00
Ricky Bobby
fa5241db39 Merge branch 'master' of https://github.com/rpreslar4765/nvm 2024-03-11 19:57:43 -04:00
Ricky Bobby
999be85a93 commit 2024-03-11 19:57:33 -04:00
Ricky Bobby
2d45b7b2f6 commit 2024-03-05 16:09:35 +00:00
Ricky Bobby
61069e6c8a
Merge branch 'nvm-sh:master' into master 2024-02-19 10:05:55 -05:00
Jordi Paris Ferrer
c82e7a6f62
Fix typo in WSL section of README
`u` -> `you`
2024-02-17 16:39:36 -08:00
Ricky Bobby
cf918a6567
Merge branch 'nvm-sh:master' into master 2024-02-16 20:42:53 -05:00
Ricky Bobby
531d7c5262 commit 2024-01-29 16:22:51 +00:00
Ricky Bobby
3cfd378ce1 commit 2024-01-26 04:22:42 +00:00
jbidad
4e2a71ba9b
[Docs] add nvm unload to uninstall nvm instructions 2024-01-18 12:07:01 +03:30
Jordan Harband
6c9cd2f2d1
[security] fix typo in threat model 2023-12-15 09:46:35 -08:00
Ricky Bobby
6341630700 Merge remote-tracking branch 'upstream/master' 2023-12-11 11:42:54 -05:00
Jordan Harband
bab86d5de5
v0.39.7 2023-12-05 21:50:27 -08:00
Jordan Harband
d86f270438
[Fix] use \hash instead of command hash for zsh
See #3239; Fixes #3247; Closes #3246
2023-12-05 21:48:51 -08:00
Jordan Harband
c73009f503
v0.39.6 2023-12-04 22:03:25 -08:00
Ricky Bobby
8604621557
commit 2023-10-26 16:13:14 -04:00
Ricky Bobby
a507a96269 commit 2023-10-20 14:23:58 -04:00
Ricky Bobby
062f57ef74 commit 2023-10-20 13:37:48 -04:00
Michael Di Prisco
8a83b36688
[readme] missing parenthesis 2023-10-06 02:36:26 +02:00
Jordan Harband
414e8d426f
[Tests] switch cygwin mirror 2023-10-09 14:50:40 -07:00
zhangdiandian
1b102ab9a6
[Tests] fix filename typo
Signed-off-by: zhangdiandian <1635468471@qq.com>
2023-10-09 07:31:04 +00:00
Peter Dave Hello
d4a733e4d8
[Dockerfile] Remove apt src disabling, no longer needed 2023-09-19 20:03:01 +08:00
Nam
1de3333651
[Dockerfile] [Fix] add missing leading slash in path 2023-09-18 17:42:40 +07:00
Jordan Harband
1eaaada499
[Perf] nvm_check_file_permissions: do not traverse into symlinks 2023-08-25 22:49:41 -07:00
Jordan Harband
c92adb3c47
v0.39.5 2023-08-21 21:10:10 -07:00
Oliver Henshaw
15eba7b7e6
[Fix] nvm_strip_path: Preserve leading/trailing colons
Path lists in environmental variables often give special meaning to
empty entries (e.g. in PATH or MANPATH). These are represented by
leading or trailing colons, or by doubled colons in the middle of the
list.

Adjust the awk invocation to correctly deal with trailing colons by
printing the separator before every field except the first, and then
printing the final separator that is read from the input - this will
either be a colon or the null string. This preserves leading and
trailing colons in all cases while not adding extra colons in the wrong
place.

Add test to confirm the correct behaviour.

Fixes #3144
2023-06-21 15:47:52 +01:00
heungjun.park
a1601eddb8
[readme] add examples of setting specific versions as default
Co-authored-by: heungjun.park <rockheung@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-07-20 17:39:37 +09:00
Jordan Harband
324b81a722
[Fix] allow checksums to pass with a leading backslash
See https://unix.stackexchange.com/a/555061/137489
2023-08-06 14:51:48 +12:00
Jordan Harband
55075db96d
[Tests] add some nvm_do_install tests 2022-12-27 22:57:07 -08:00
Jordan Harband
4618ce0aa1
[Tests] a cleaner name for the windows tests 2022-12-27 22:32:09 -08:00
Jordan Harband
3afdce0a2c
[Fix] nvm install-latest-npm: ensure npm 10 does not install on unsupported nodes
See https://github.com/npm/cli/pull/6674
2023-07-26 13:21:03 -07:00
Jordan Harband
8fbf8ab694
v0.39.4 2023-07-24 18:29:54 -07:00
Jordan Harband
4fc91d408c
[Dev Deps] update markdown-link-check, semver 2023-07-24 18:24:39 -07:00
Emmanuel Ogbizi
f86847fdd2
[readme] add nvshim tool alongside avn 2020-04-15 19:27:44 -04:00
emmanuel-ferdman
9a769630d7
[readme] fix typo in resolv.conf filename
Signed-off-by: emmanuel-ferdman <35470921+emmanuel-ferdman@users.noreply.github.com>
2023-06-18 15:41:40 +03:00
Augustin Mauroy
c26422a03e
[readme] Update logo header 2023-06-05 10:34:20 +02:00
milesfrain
7c3cd81ad9
[readme] Add instructions on how to install without editing shell config
I had to dig into #2410 to learn about the `PROFILE=/dev/null` technique to install without appending to my shell config. Figured this note would be good to add in the main installation docs.
Also added a note on how to do this as a one-liner which was not obvious for me.
2023-04-25 13:49:16 -07:00
Deniz Eren Evrendilek
0ebda7eea3
[meta] Remove unavailable testing script
Fixes #3104
2023-05-01 11:23:38 -07:00
Deniz
5410ae57ba
[Fix] fix node download link for armv8l
Fixes #3035
2023-04-29 16:41:31 -07:00
Spike Grobstein
70aa611abc
[Fix] nvm exec: no longer error with '-q: invalid option' for zsh users
the `nvm.sh` file assigns and exports an `NVM_CD_FLAGS` variable if it
was sourced from a zsh shell. the fact that it's exported means that
it'll be assigned in all child processes, including the `nvm-exec`
script, which uses bash as the interpreter.

Bash's `cd` command doesn't have a `-q` flag, so if the `NVM_CD_FLAGS`
is assigned `-q`, the script will error out and incorrectly claim that
the node version isn't installed.

this also manifests itself in the `nvm exec` command.

Example:

```console
$ nvm exec 16.14.0 npm --version
Running node v16.14.0 (npm v8.3.1)
/Users/<ME>/.nvm/nvm.sh: line 28: cd: -q: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
both the tree and the node path are required
N/A: version "v16.14.0 -> N/A" is not yet installed.

You need to run "nvm install v16.14.0" to install it before using it.
```

To address this, we unset the `NVM_CD_FLAGS` at the start of the
`nvm-exec` script, before loading `nvm.sh`.
2023-04-21 20:40:01 -07:00
Jordan Harband
c08b38a2a4
[Fix] nvm_print_npm_version: if npm exists but its node crashes, do not print the npm version 2023-04-28 10:57:57 -07:00
Jordan Harband
a07cd41af1
[Fix] nvm_ls_current: when node is present but crashes immediately, echo "none" 2023-04-28 10:55:03 -07:00
JC (Jonathan Chen)
d1a22a63bd
[readme] cdnvm function: fix shellcheck errors
Resolves #3081
2023-04-09 09:21:56 -04:00
Leo Zlotnikov
0d9b5c2a00
[Fix] fix directory traversal when workdir path is not readable 2023-04-08 17:24:41 +01:00
Peter Dave Hello
44e1d9c911
[Dockerfile] Update base image from Ubuntu 20.04 to 22.04, cc #2877 2023-04-06 01:22:10 +08:00
Jordan Harband
b1331c20b0
[Tests] add unit tests for nvm_download_artifact 2023-04-06 09:23:33 -07:00
Peter Dave Hello
766341fca1
[readme] Update Travis CI badge and link url
travis-ci.org is deprecated and replaced by app.travis-ci.com for a while
2023-04-03 22:50:48 +08:00