asdf-vm / asdf-vm/asdf-nodejs

Could not determine Node.js install directory

Open
#271 1 comment 0 reactions 0 assignees View on GitHub
help wanted WSL
Dominant language
Shell
Stars
989
Forks
162
PR merge metrics
No merged PRs in 30d

Description

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

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.