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

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions