mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-10-11 00:00:13 +08:00
[readme] explain the misleading npm install error from npm run test/fast
This commit is contained in:
@@ -895,6 +895,12 @@ Run all of the tests like this:
|
||||
|
||||
npm test
|
||||
|
||||
`npm run test/fast` runs `make` inside a clean environment (`env -i ... bash -lc`), so `node` must be on the `PATH` of a fresh login `bash` shell.
|
||||
If `node` is only available through `nvm` in your current shell, it fails with "Did you forget to run `npm install` after cloning the repo?", even after a successful `npm install`.
|
||||
In that case, run `make` directly from the root of the nvm git repository, choosing the test suite and shell:
|
||||
|
||||
make TEST_SUITE=fast test-zsh
|
||||
|
||||
Nota bene: Avoid running nvm while the tests are running.
|
||||
|
||||
## Environment variables
|
||||
|
||||
Reference in New Issue
Block a user