Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Look for node before nodejs #197

Open
wvengen opened this issue Dec 22, 2015 · 0 comments
Open

Look for node before nodejs #197

wvengen opened this issue Dec 22, 2015 · 0 comments

Comments

@wvengen
Copy link

wvengen commented Dec 22, 2015

When using NVM having a system node package installed on Debian or Ubuntu, execjs always uses the system node. This is because it looks for the nodejs binary first, which is provided by the system binary and not NVM (since it is something introduced by the distribution).

Suggestion: first look for node, then nodejs. Or don't look for nodejs at all (unless an env variable is set).

First brought up in NVM: nvm-sh/nvm#308 (comment)

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

No branches or pull requests

1 participant