mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-19 12:03:43 +00:00
Compare commits
4 Commits
bfa2f572a3
...
55da18539c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
55da18539c | ||
![]() |
650b069bb8 | ||
![]() |
5a28180ed6 | ||
![]() |
e2ff1e7f08 |
12
README.md
12
README.md
@ -61,8 +61,6 @@
|
|||||||
- [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)
|
||||||
|
|
||||||
@ -1072,16 +1070,6 @@ 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).
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/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}")
|
|
@ -0,0 +1,20 @@
|
|||||||
|
#!/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