Can't use runtime because `File.executable?` returns false
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start in lib/execjs/external_runtime.rb at ExternalRuntime.locate_executable and reproduce the reported File.executable? result using the Docker, Ruby 2.7.4, and ExecJS 2.8.1 setup described. Compare the behavior for the present /usr/bin/node executable and identify the expected runtime-detection behavior; the issue does not name a test or a specific intended change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
== Stack ==
Docker
Ruby 2.7.4
ExecJS 2.8.1
- Lingua principale
- Ruby
- Stelle
- 578
- Fork
- 286
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rails/execjs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 10/100
Tutte le issue di rails/execjs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
rubys/roundhouse#444 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
sclorg/s2i-ruby-container#656 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
theforeman/theforeman.org#2323 ·
-
request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
endoflife-date/endoflife.date#11277 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno