1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Search node binary first than nodejs

- Many of node.js managers like nodebrew install `node` command
- OS package managers often install `nodejs`, e.g. Debian/Ubuntu
- Thus, if OS has installed older version of `nodejs`,
  execjs detects and uses this preferentially
This commit is contained in:
Uchio KONDO 2018-12-18 12:39:04 +09:00
parent 7dd2a79676
commit cf0ffffa78

View file

@ -20,7 +20,7 @@ module ExecJS
Node = ExternalRuntime.new(
name: "Node.js (V8)",
command: ["nodejs", "node"],
command: ["node", "nodejs"],
runner_path: ExecJS.root + "/support/node_runner.js",
encoding: 'UTF-8'
)