mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
![]() <details> <summary>Before this revert:</summary> ```sh iojs-v3.3.1 iojs-v2.5.0 v0.6.21 v0.7.12 iojs-v1.8.4 v0.8.28 v0.9.12 v0.10.48 v0.11.16 v0.12.9 v0.12.18 v0.12.87 v4.9.1 v5.11.1 v5.12.0 v6.14.4 v6.16.0 v7.10.1 v8.6.0 v8.9.1 v8.10.0 v8.11.3 v8.11.4 v8.12.0 v8.13.0 v8.14.1 v8.15.0 v9.11.2 v10.0.0 v10.1.0 v10.2.1 v10.3.0 v10.4.1 v10.5.0 v10.6.0 v10.7.0 v10.8.0 v10.9.0 v10.10.0 v10.11.0 v10.12.0 v10.13.0 v10.14.2 v10.15.1 v11.0.0 v11.1.0 v11.2.0 v11.3.0 v11.4.0 v11.5.0 v11.6.0 v11.7.0 v11.8.0 v11.9.0 v11.10.0 ``` </details> <details> <summary>After this revert:</summary> ```sh v0.6.21 v0.7.12 v0.8.28 v0.9.12 v0.10.48 v0.11.16 v0.12.9 v0.12.18 v0.12.87 iojs-v1.8.4 iojs-v2.5.0 iojs-v3.3.1 v4.9.1 v5.11.1 v5.12.0 v6.14.4 v6.16.0 v7.10.1 v8.6.0 v8.9.1 v8.10.0 v8.11.3 v8.11.4 v8.12.0 v8.13.0 v8.14.1 v8.15.0 v9.11.2 v10.0.0 v10.1.0 v10.2.1 v10.3.0 v10.4.1 v10.5.0 v10.6.0 v10.7.0 v10.8.0 v10.9.0 v10.10.0 v10.11.0 v10.12.0 v10.13.0 v10.14.2 v10.15.1 v11.0.0 v11.1.0 v11.2.0 v11.3.0 v11.4.0 v11.5.0 v11.6.0 v11.7.0 v11.8.0 v11.9.0 v11.10.0 ``` </details> In other words, the sorting needs to happen *before* the `NVM_NODE_PREFIX` is removed. |
||
---|---|---|
.. | ||
Aliases | ||
Listing paths | ||
Listing versions | ||
Unit tests | ||
nvm should remove the last trailing slash in $NVM_DIR | ||
Running "nvm alias" should create a file in the alias directory. | ||
Running "nvm current" should display current nvm environment. | ||
Running "nvm deactivate" should unset the nvm environment variables. | ||
Running "nvm install" with "--reinstall-packages-from" requires a valid version | ||
Running "nvm install" with an invalid version fails nicely | ||
Running "nvm unalias" should remove the alias file. | ||
Running "nvm uninstall" should remove the appropriate directory. | ||
Running "nvm uninstall" with incorrect file permissions fails nicely | ||
Running "nvm unload" should unset all function and variables. | ||
Running "nvm use foo" where "foo" is circular aborts | ||
Running "nvm use iojs" uses latest io.js version | ||
Running "nvm use system" should work as expected | ||
Running "nvm use x" should create and change the "current" symlink | ||
Running "nvm use x" should not create the "current" symlink if $NVM_SYMLINK_CURRENT is false | ||
Running "nvm use" should drop CR char automatically. | ||
setup | ||
setup_dir | ||
Sourcing nvm.sh should make the nvm command available. | ||
Sourcing nvm.sh should not modify parameters of caller | ||
teardown | ||
teardown_dir |