Open
Description
Hey guys,
Something weird here. I'm getting the error below when trying to start the Docker container:
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime
.
After some debugging, I found a strange behavior on ExecJS::ExternalRuntime.locate_executable
, where the File.executable?(full_path)
is returning false
, although the /usr/bin/node
executable is present.
pry> File.stat('/usr/bin/node').owned?
=> true
pry(#<ExecJS::ExternalRuntime>)> File.executable?('/usr/bin/node')
=> false
pry(#<ExecJS::ExternalRuntime>)> File.file?('/usr/bin/node')
=> true
execjs/lib/execjs/external_runtime.rb
Line 137 in 3e94078
== Stack ==
Docker
Ruby 2.7.4
ExecJS 2.8.1
Metadata
Metadata
Assignees
Labels
No labels