Skip to content
This repository was archived by the owner on Mar 21, 2019. It is now read-only.

Fix issue with execjs - #50

Open
rancavil wants to merge 2 commits into
harrystech:masterfrom
InnovaserLab:master
Open

Fix issue with execjs#50
rancavil wants to merge 2 commits into
harrystech:masterfrom
InnovaserLab:master

Conversation

@rancavil

Copy link
Copy Markdown

Fixed the problem with execjs adding execjs in Gemfile.

@billybonks

Copy link
Copy Markdown

what was the problem ?

@rancavil

Copy link
Copy Markdown
Author

The problem was: When I executed

 $ bundle exec rake db:create

I get the next error
.....
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
.....
I added

 gem 'execjs'
 gem 'therubyracer', :platforms => :ruby

In the Gemfile and works for me....

@madaarya

Copy link
Copy Markdown

i think only include therubyracer gem is enough. No need execjs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants