Skip to content

Commit f6dc08c

Browse files
Merge pull request #84 from udzura/prefer-to-use-node
Search `node` binary first even when `nodejs` exists
2 parents 7dd2a79 + cf0ffff commit f6dc08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/execjs/runtimes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Runtimes
2020

2121
Node = ExternalRuntime.new(
2222
name: "Node.js (V8)",
23-
command: ["nodejs", "node"],
23+
command: ["node", "nodejs"],
2424
runner_path: ExecJS.root + "/support/node_runner.js",
2525
encoding: 'UTF-8'
2626
)

0 commit comments

Comments
 (0)