typesafehub / js-engine

A JavaScript Engine Library - provides an abstract of a means to execute JavaScript code where no browser is involved.
Other
72 stars 20 forks source link

Does not detect Node.JS on Debian or AWS by default #56

Open benmccann opened 7 years ago

benmccann commented 7 years ago

We require node to be on the path. See https://github.com/typesafehub/js-engine/blob/master/src/main/scala/com/typesafe/jse/LocalEngine.scala#L69

Apparently Debian calls it nodejs because there's another package named node already. That means we should probably check for nodejs first and prefer it in case the user also has node installed.

I generally don't like installing the version of node that comes with the system package manager and typically prefer nvm

Workaround for these systems: Install nodejs-legacy, which adds symlink /usr/bin/node -> nodejs.