Skip to content

Conversation

@anup-the-magic
Copy link
Contributor

I think this is a fix to the NPM detection flow, which prefers the currently selected, asdf-installed version of NPM over some other, globally installed version of NPM.

Context, I have asdf installed on Ubuntu under WSL2, and I have global installation of NPM in Windows. WSL2 adds my Windows path to $PATH, but I don't want asdf to detect that when selecting a version of node, so I'd rather bias it to the one selected via asdf where nodejs. This might fix the longstanding #271, but that's seen zero activity in 4 years, so I don't even know if that's still an issue.

@augustobmoura
Copy link
Member

It is a fix but it should be a temporary one, the real problem is probably on asdf-core.

I'm merging this to unblock other people, but I plan on revising this approach when I get the time.

Thanks for looking into this @anup-the-magic! This will help tremendously in the mean time

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants