Skip to content

Commit

Permalink
Merge pull request rails#84 from udzura/prefer-to-use-node
Browse files Browse the repository at this point in the history
Search `node` binary first even when `nodejs` exists
  • Loading branch information
guilleiguaran committed Jan 21, 2019
2 parents 7dd2a79 + cf0ffff commit f6dc08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/execjs/runtimes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Runtimes

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

0 comments on commit f6dc08c

Please sign in to comment.