rake db:create - Could not find a JavaScript runtime

后端 未结 6 1536
后悔当初
后悔当初 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:41

    insert gem 'therubyracer' in Gemfile in a new line 1. run

    gem install therubyracer -v '0.11.4'

    1. run

    bundle install

    This will work

提交回复
热议问题