mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-06-27 11:38:43 +00:00
![]() It's possible that `tree` and `node_path` both refer to the same directory, but are lexically different. This converts both paths into a canonical form so that any lexical-only differences are removed. This solves a problem where setting `NVM_DIR` to /home/user//.nvm instead of /home/user/.nvm results in the infamous: nvm is not compatible with the npm config "prefix" option This adds a test that the above case no longer results in an error. An existing test stopped failing as expected as a result, as the test set the npm prefix to a local-directory-relative path, which resolved to a directory inside the `NVM_DIR` when running the tests from within the `NVM_DIR`. This test is updated to use an absolute path. |
||
---|---|---|
.. | ||
Aliases | ||
Listing paths | ||
Listing versions | ||
Set Colors | ||
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 |