rake db:create - Could not find a JavaScript runtime

后端 未结 6 1544
后悔当初
后悔当初 2021-02-05 08:06

Here is the error I get:

sergio@sergio-VirtualBox:~/blog$ rake db:create
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/ex         


        
6条回答
  •  情话喂你
    2021-02-05 08:29

    There are several fairly similar options such rubytheracer, node and execjs.

    rubytheracer has fallen out of favor due to its code size. Vendors such as Heroku (for rails) actively discourage it.

    I currently recommend node.js

    More info at Rails - Could not find a JavaScript runtime?

提交回复
热议问题