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:
parent
7dd2a79676
commit
cf0ffffa78
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue