asdf-vm/asdf-nodejs

Could not determine Node.js install directory

Offen

#271 geöffnet am 02.12.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Shell (163 Forks)github user discovery
WSLhelp wanted

Repository-Metriken

Stars
 (987 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

After installing the latest version of nodejs with asdf install nodejs latest and then setting it as global with asdf global nodejs latest, when I type node, it works as expected, but if I use npm or npx, they give the errors:

npm: Error: EINVAL: invalid argument, uv_pipe_open Error: Cannot find module '\\wsl$\Ubuntu\node_modules\npm\bin\npm-cli.js'

npx: Error: EINVAL: invalid argument, uv_pipe_open.

And the last line when running either of these is Could not determine Node.js install directory.

I am using a WSL with Ubuntu downloaded from the Microsoft store.

Contributor Guide