mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Merge pull request #84 from udzura/prefer-to-use-node
Search `node` binary first even when `nodejs` exists
This commit is contained in:
commit
f6dc08c58a
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module ExecJS
|
||||||
|
|
||||||
Node = ExternalRuntime.new(
|
Node = ExternalRuntime.new(
|
||||||
name: "Node.js (V8)",
|
name: "Node.js (V8)",
|
||||||
command: ["nodejs", "node"],
|
command: ["node", "nodejs"],
|
||||||
runner_path: ExecJS.root + "/support/node_runner.js",
|
runner_path: ExecJS.root + "/support/node_runner.js",
|
||||||
encoding: 'UTF-8'
|
encoding: 'UTF-8'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue