mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-17 11:03:44 +00:00
Compare commits
3 Commits
55da18539c
...
bfa2f572a3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bfa2f572a3 | ||
![]() |
24deac7ac5 | ||
![]() |
50480e49b9 |
12
README.md
12
README.md
@ -61,6 +61,8 @@
|
|||||||
- [macOS Troubleshooting](#macos-troubleshooting)
|
- [macOS Troubleshooting](#macos-troubleshooting)
|
||||||
- [WSL Troubleshooting](#wsl-troubleshooting)
|
- [WSL Troubleshooting](#wsl-troubleshooting)
|
||||||
- [Maintainers](#maintainers)
|
- [Maintainers](#maintainers)
|
||||||
|
- [Project Support](#project-support)
|
||||||
|
- [Enterprise Support](#enterprise-support)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
- [Copyright notice](#copyright-notice)
|
- [Copyright notice](#copyright-notice)
|
||||||
|
|
||||||
@ -1070,6 +1072,16 @@ You can check the contents of the file by running:
|
|||||||
|
|
||||||
Currently, the sole maintainer is [@ljharb](https://github.com/ljharb) - more maintainers are quite welcome, and we hope to add folks to the team over time. [Governance](./GOVERNANCE.md) will be re-evaluated as the project evolves.
|
Currently, the sole maintainer is [@ljharb](https://github.com/ljharb) - more maintainers are quite welcome, and we hope to add folks to the team over time. [Governance](./GOVERNANCE.md) will be re-evaluated as the project evolves.
|
||||||
|
|
||||||
|
## Project Support
|
||||||
|
|
||||||
|
Only the latest version (v0.39.7 at this time) is supported.
|
||||||
|
|
||||||
|
## Enterprise Support
|
||||||
|
|
||||||
|
If you are unable to update to the latest version of `nvm`, our [partners](https://openjsf.org/ecosystem-sustainability-program) provide commercial security fixes for all unsupported versions:
|
||||||
|
|
||||||
|
- [HeroDevs Never-Ending Support](https://www.herodevs.com/support?utm_source=OpenJS&utm_medium=Link&utm_campaign=nvm_openjs)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
See [LICENSE.md](./LICENSE.md).
|
See [LICENSE.md](./LICENSE.md).
|
||||||
|
18
test/fast/Running 'nvm-exec' should display required node version
Executable file
18
test/fast/Running 'nvm-exec' should display required node version
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
\. ../../nvm.sh
|
||||||
|
|
||||||
|
NVM_TEST_VERSION=v0.42
|
||||||
|
|
||||||
|
# Write it to nvmrc
|
||||||
|
echo "$NVM_TEST_VERSION" > .nvmrc
|
||||||
|
|
||||||
|
OUTPUT="$(../../nvm-exec 2>&1)";
|
||||||
|
EXPECTED="N/A: version \`${NVM_TEST_VERSION}\` is not yet installed.
|
||||||
|
|
||||||
|
You need to run \`nvm install ${NVM_TEST_VERSION}\` to install and use it.
|
||||||
|
No NODE_VERSION provided; no .nvmrc file found";
|
||||||
|
|
||||||
|
# Skip install, we want to test the error message
|
||||||
|
diff <(echo "${EXPECTED}") <(echo "${OUTPUT}")
|
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
\. ../../nvm.sh
|
|
||||||
|
|
||||||
NVM_TEST_VERSION=v9
|
|
||||||
|
|
||||||
# Remove the stuff we're clobbering.
|
|
||||||
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
|
|
||||||
|
|
||||||
# Write it to nvmrc
|
|
||||||
echo "$NVM_TEST_VERSION" > .nvmrc
|
|
||||||
|
|
||||||
output="$(../../nvm-exec 2>&1)";
|
|
||||||
expected='N/A: version "v9" is not yet installed.
|
|
||||||
|
|
||||||
You need to run `nvm install v9` to install and use it.
|
|
||||||
No NODE_VERSION provided; no .nvmrc file found';
|
|
||||||
# Skip install, we want to test the error message
|
|
||||||
diff <(echo "$expected") <(echo "$output")
|
|
Loading…
x
Reference in New Issue
Block a user