Skip to content

Missing dependency? #117

Closed
Closed

Description

@glindstedt

I ran into an error stating that execjs could not find a JavaScript runtime, as described in this stack question, when running rake db:migrate after my latest pull.

This might be due to a missing gem dependency. Installing node.js is what fixed it for me, installing execjs and therubyracer wasn't enough. And yes, I ran bundle install.

Activity

  1. Driim commented on May 15, 2013

    @Driim

    installing nodejs helps me

  2. swanson commented on May 16, 2013

    @swanson
    Collaborator

    Interesting - not sure about this one. We use sinatra-assetpack which uses uglifier which uses execjs to pick a Javascript runtime. So having therubyracer installed should work. Could you provide anymore information about your environment?

    If you can't get it working, you could always trying removing this line: https://github.com/swanson/stringer/blob/master/app.rb#L78 and just not having the javascript get compressed.

  3. swanson commented on May 17, 2013

    @swanson
    Collaborator

    I've swapped to using jsmin instead of uglifier for this - so you should not need a JS runtime anymore. Please let me know if you still have issues.

  4. glindstedt commented on May 17, 2013

    @glindstedt
    ContributorAuthor

    Works great, thank you!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions