Could not find coffee-script-source-1.1.3 in any o

2019-04-30 04:48发布

Hi I'm doing Rails app and when I bundle install it returns an error:

Could not find coffee-script-source-1.1.3 in any of the sources

I know that coffee-script-source-1.1.3 gem is deprecated/yanked but my other gems are having dependencies with this.

But this project is working with other machine and in heroku production. How can I successfully bundle install this without changing my gemfile? Thanks

2条回答
Explosion°爆炸
2楼-- · 2019-04-30 04:59

Run this:

bundle update --source coffee-script-source

If you get an error, like this:

An error occurred while installing rmagick (2.13.1), and Bundler cannot continue.

Run this:

 gem install rmagick

I hope it'll help you.

查看更多
戒情不戒烟
3楼-- · 2019-04-30 05:18

What it worked for me was to update the gem to 1.2.0.

As it shows here https://rubygems.org/gems/coffee-script-source/versions 1.1.3 says that it's yanked.

gem 'coffee-script-source', '~> 1.2.0'

And run

bundle update --source coffee-script-source
查看更多
登录 后发表回答