[readme] explain the misleading npm install error from npm run test/fast

This commit is contained in:
Hridhin Varkey Joseph
2026-10-04 00:49:18 +05:30
committed by Jordan Harband
parent 5326eaab9d
commit ed1b96f5db
+6
View File
@@ -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