简体   繁体   中英

Rails server could not find uglifier in GemFile

Just got on learning ruby on rails a few days ago, I am trying to start my first rails project and anytime I try starting the rails server using the command rails server , I get this error:

could not find gem 'uglifier (>=1.3.0) x86-mingw32' in any of the gem sources listed in your GemFile.

I started the project with these commands:

rails new hello_world
cd hello_world
rails server

I have run the bundle install and yet I still get the error. Is there any way to fix this or is there something I am doing wrong?

Try add this to your Gemfile:

gem 'uglifier', '~> 4.2'

and then bundle install

Hope it helps.

try manually reinstalling.

gem cleanup uglifier
gem install uglifier

Please try:

gem install bundle

Then

bundle install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM