Tag: gemfile.lock

Bundler找不到gem“sass”的兼容版本

我正在使用中间人3.3.9和 gem ‘sass-rails’, ‘~> 4.0.3’ gem ‘bootstrap-sass’, ‘~> 3.3.1’ gem ‘bootstrap-timepicker-rails’ gem ‘sass’, ‘~> 3.2.19’ 当我运行bundle install时,我收到此错误: Bundler could not find compatible versions for gem “sass”: In Gemfile: middleman (~> 3.3.9) ruby depends on sass (= 3.4.0) ruby sass (3.2.19) 我怎么能通过这个?

Gemfile.lock始终具有未提交的更改

我正在努力的rails应用程序上遇到这个问题。 我正在开发一个function分支,并希望从最新的主人那里重新定义。 我运行了以下命令: $ git checkout master $ git pull –rebase 如果我尝试检出我的function分支,我会收到以下错误: Changes not staged for commit: (use “git add …” to update what will be committed) (use “git checkout — …” to discard changes in working directory) modified: Gemfile.lock 我尝试了以下命令将Gemfile.lock解析回aster,但没有一个成功: $ git checkout — Gemfile.lock $ git stash $ git reset HEAD –hard 每次我运行一个新的git命令时,我都会回到Gemfile.lock,这些更改没有为commit提交。 […]

您的软件包已锁定到rake(12.0.0),但在Gemfile中列出的任何源中都找不到该版本。

启动rails服务器时收到以下错误消息: 您的软件包已锁定到rake(12.0.0),但在Gemfile中列出的任何源中都找不到该版本。 如果您没有更改源,则表示rake(12.0.0)的作者已将其删除。 您需要将捆绑包更新为尚未删除的不同版本的rake(12.0.0)才能安装。 我在gemfile中指定了gem’rake gem ‘rake’, ‘12.0.0’ .0.0 gem ‘rake’, ‘12.0.0’但是没有修复它。 我尝试了bundle update rake ,删除了Gemfile.lock并使用bundle exec bundle install生成它。 我还在我的命令中添加了`bundle exec1,它什么也没做。 我的Gemfile.lock已经指定了rake版本12.0.0,并且没有安装其他版本。 请参阅我的gemfile: http ://pastebin.com/L4tVFWz9 和rakefile: http ://pastebin.com/K7p2ajsE 我尝试了已经激活的rake版本中建议的解决方案,而不是Gemfile要求的防止rake命令