Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not determine Node.js install directory #271

Open
KrishGarg opened this issue Dec 2, 2021 · 1 comment
Open

Could not determine Node.js install directory #271

KrishGarg opened this issue Dec 2, 2021 · 1 comment

Comments

@KrishGarg
Copy link

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.

@augustobmoura
Copy link
Member

Can you check if is related to Microsoft/WSL#2370? We don't actively support WSL currently so it's kinda a try and error for us.

Are you having this error only with node.js or with other asdf-plugins as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants