1
0
Fork 0
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:
Guillermo Iguaran 2019-01-21 13:30:08 -05:00 committed by GitHub
commit f6dc08c58a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'
)