refinery / refinerycms

An extendable Ruby on Rails CMS that supports Rails 6.0+
https://www.refinerycms.com/
MIT License
3.9k stars 1.26k forks source link

gem 'uglifier'. (Bundler::GemRequireError) #3210

Closed kreker92 closed 8 years ago

kreker92 commented 8 years ago

I've installed gem refinerycms ake bundle install then rails s or rails g refinery:cms --fresh-install Error: /usr/local/rvm/gems/ruby-2.2.3@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)

My Gemfile: source 'https://rubygems.org'

gem 'rails', '~> 4.2.3' gem 'sqlite3' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0'

gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 2.0' gem 'sdoc', '~> 0.4.0', group: :doc

group :development, :test do gem 'byebug' gem 'web-console', '~> 2.0' gem 'spring' end

Refinery CMS

gem "refinerycms", github: "refinery/refinerycms", branch: "master" gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'


Gemfile.lock GIT remote: git://github.com/refinery/refinerycms-i18n.git revision: ff93ad912c86eb2f1a07a77ac1c75133474f7fea branch: master specs: refinerycms-i18n (3.0.1) rails-i18n (~> 4.0.1) routing-filter (>= 0.4.0)

GIT remote: git://github.com/refinery/refinerycms.git revision: 0978281d5cd68f19c77a574f5510f9c8cee5a50c branch: master specs: refinerycms (4.0.0.dev) refinerycms-core (= 4.0.0.dev) refinerycms-images (= 4.0.0.dev) refinerycms-pages (= 4.0.0.dev) refinerycms-resources (= 4.0.0.dev) refinerycms-core (4.0.0.dev) actionpack (>= 4.2.3, < 5.0) activerecord (>= 4.2.3, < 5.0) awesome_nested_set (~> 3.0, >= 3.0.0) bootstrap (~> 4.0.0.alpha3) coffee-rails (~> 4.0, >= 4.0.0) decorators (~> 2.0.0) font-awesome-sass (>= 4.3.0, < 5.0) jquery-rails (>= 2.3.0) jquery-ui-rails (~> 5.0.0) railties (>= 4.2.3, < 5.0) refinerycms-i18n (~> 3.0, >= 3.0.0) sass-rails (>= 4.0, < 5.1) truncate_html (~> 0.9) will_paginate (~> 3.0.2) zilch-authorisation refinerycms-images (4.0.0.dev) dragonfly (~> 1.0.0) globalize (>= 4.0.0, < 5.2) refinerycms-core (= 4.0.0.dev) refinerycms-pages (4.0.0.dev) awesome_nested_set (~> 3.0.0) babosa (!= 0.3.6) diffy (~> 3.1.0) friendly_id (>= 5.1.0, < 5.3) globalize (>= 4.0.0, < 5.2) refinerycms-core (= 4.0.0.dev) seo_meta (~> 2.0.0.rc.1) speakingurl-rails (~> 8.0.0) refinerycms-resources (4.0.0.dev) acts_as_indexed (~> 0.8.0) dragonfly (~> 1.0.0) globalize (>= 4.0.0, < 5.2) refinerycms-core (= 4.0.0.dev)

GEM remote: https://rubygems.org/ specs: actionmailer (4.2.6) actionpack (= 4.2.6) actionview (= 4.2.6) activejob (= 4.2.6) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 1.0, >= 1.0.5) actionpack (4.2.6) actionview (= 4.2.6) activesupport (= 4.2.6) rack (~> 1.6) rack-test (~> 0.6.2) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.2) actionview (4.2.6) activesupport (= 4.2.6) builder (~> 3.1) erubis (~> 2.7.0) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.2) activejob (4.2.6) activesupport (= 4.2.6) globalid (>= 0.3.0) activemodel (4.2.6) activesupport (= 4.2.6) builder (~> 3.1) activerecord (4.2.6) activemodel (= 4.2.6) activesupport (= 4.2.6) arel (~> 6.0) activesupport (4.2.6) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) acts_as_indexed (0.8.3) addressable (2.4.0) arel (6.0.3) autoprefixer-rails (6.3.7) execjs awesome_nested_set (3.0.3) activerecord (>= 4.0.0, < 5) babosa (1.0.2) binding_of_caller (0.7.2) debug_inspector (>= 0.0.1) bootstrap (4.0.0.alpha3) autoprefixer-rails (>= 6.0.3) sass (>= 3.4.19) builder (3.2.2) byebug (9.0.5) coffee-rails (4.1.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.1.x) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.10.0) concurrent-ruby (1.0.2) debug_inspector (0.0.2) decorators (2.0.2) railties (>= 4.0.0, < 5.1) diffy (3.1.0) dragonfly (1.0.12) addressable (~> 2.3) multi_json (~> 1.0) rack (>= 1.3.0) erubis (2.7.0) execjs (2.7.0) font-awesome-sass (4.6.2) sass (>= 3.2) friendly_id (5.1.0) activerecord (>= 4.0.0) globalid (0.3.6) activesupport (>= 4.1.0) globalize (5.0.1) activemodel (>= 4.2.0, < 4.3) activerecord (>= 4.2.0, < 4.3) i18n (0.7.0) jbuilder (2.5.0) activesupport (>= 3.0.0, < 5.1) multi_json (~> 1.2) jquery-rails (4.1.1) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) jquery-ui-rails (5.0.5) railties (>= 3.2.16) json (1.8.3) loofah (2.0.3) nokogiri (>= 1.5.9) mail (2.6.4) mime-types (>= 1.16, < 4) mime-types (3.1) mime-types-data (~> 3.2015) mime-types-data (3.2016.0521) mini_portile2 (2.1.0) minitest (5.9.0) multi_json (1.12.1) nokogiri (1.6.8) mini_portile2 (~> 2.1.0) pkg-config (~> 1.1.7) pkg-config (1.1.7) rack (1.6.4) rack-test (0.6.3) rack (>= 1.0) rails (4.2.6) actionmailer (= 4.2.6) actionpack (= 4.2.6) actionview (= 4.2.6) activejob (= 4.2.6) activemodel (= 4.2.6) activerecord (= 4.2.6) activesupport (= 4.2.6) bundler (>= 1.3.0, < 2.0) railties (= 4.2.6) sprockets-rails rails-deprecated_sanitizer (1.0.3) activesupport (>= 4.2.0.alpha) rails-dom-testing (1.0.7) activesupport (>= 4.2.0.beta, < 5.0) nokogiri (~> 1.6.0) rails-deprecated_sanitizer (>= 1.0.1) rails-html-sanitizer (1.0.3) loofah (~> 2.0) rails-i18n (4.0.9) i18n (~> 0.7) railties (~> 4.0) railties (4.2.6) actionpack (= 4.2.6) activesupport (= 4.2.6) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (11.2.2) rdoc (4.2.2) json (~> 1.4) routing-filter (0.5.1) actionpack (~> 4.2) activesupport (~> 4.2) sass (3.4.22) sass-rails (5.0.5) railties (>= 4.0.0, < 6) sass (~> 3.1) sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) seo_meta (2.0.0.rc.1) railties (>= 3.0.0) speakingurl-rails (8.0.2) railties (>= 3.1) spring (1.7.2) sprockets (3.6.3) concurrent-ruby (~> 1.0) rack (> 1, < 3) sprockets-rails (3.1.1) actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) sqlite3 (1.3.11) thor (0.19.1) thread_safe (0.3.5) tilt (2.0.5) truncate_html (0.9.3) turbolinks (5.0.0) turbolinks-source (~> 5) turbolinks-source (5.0.0) tzinfo (1.2.2) thread_safe (~> 0.1) uglifier (3.0.0) execjs (>= 0.3.0, < 3) web-console (2.3.0) activemodel (>= 4.0) binding_of_caller (>= 0.7.2) railties (>= 4.0) sprockets-rails (>= 2.0, < 4.0) will_paginate (3.0.7) zilch-authorisation (0.0.1)

PLATFORMS ruby

DEPENDENCIES byebug coffee-rails (~> 4.1.0) jbuilder (~> 2.0) jquery-rails rails (~> 4.2.3) refinerycms! refinerycms-i18n! sass-rails (~> 5.0) sdoc (~> 0.4.0) spring sqlite3 turbolinks uglifier (>= 1.3.0) web-console (~> 2.0)

BUNDLED WITH 1.11.2

kreker92 commented 8 years ago

need to uncomment therubyracer

manjunathmanu97 commented 6 years ago

pls ,someone help i am getting the same error even after uncommenting therubyracer

kreker92 commented 6 years ago

Have u removed Gemfile.lock before bundle install? or u can try bundle update

manjunathmanu97 commented 6 years ago

yea, i can try to update bundle, but how to update bundle

kreker92 commented 6 years ago

its a command "bundle update" http://bundler.io/v1.16/man/bundle-update.1.html

manjunathmanu97 commented 6 years ago

no its still giving the same error :- in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.

manjunathmanu97 commented 6 years ago

but when i uncommented gem uglifer and gem 'coffee-rails', '~> 4.2' ,the sever is running,

kreker92 commented 6 years ago

so have u tried to remove Gemfile.lock and then run "bundle install" ? Sorry, I dont have any idea else

bricesanchez commented 6 years ago

Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.

Hi @manjunathmanu97, You have to install execjs : gem install execjs