nodeenv icon indicating copy to clipboard operation
nodeenv copied to clipboard

Failed using system node in nodeenv if binary isn't called `nodejs`

Open grossws opened this issue 9 years ago • 1 comments

nodeenv 0.13.6, node 5.10.1

# nodeenv -n system .nodeenv
which: no nodejs in (<PATH stripped>)

I use symlink to workaround this (sudo ln -s /usr/bin/node /usr/local/bin/nodejs)

grossws avatar Apr 08 '16 13:04 grossws

In Debian/Ubuntu, there is a package called nodejs-legacy that does exactly this.

It contains a link to an explanation on why the binary should be called nodejs not node

It would be nice if nodeenv tried nodejs before node when installing node from the system.

leorochael avatar Oct 14 '16 14:10 leorochael