2017-07-04 35 views
0

我試圖bundle exec jekyll serve「你的包被鎖定爲可尋址」是什麼意思?

,但我得到這個錯誤:

Your bundle is locked to addressable (2.5.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of addressable (2.5.0) has removed it. You'll need to update your bundle to a different version of addressable (2.5.0) that hasn't been removed in order to install. 
Run `bundle install` to install missing gems. 

bundle install給我

Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile (1.13.7). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 

這工作,但它給了我錯誤的版本,我認爲:

Successfully installed bundler-1.15.1 
Parsing documentation for bundler-1.15.1 
Done installing documentation for bundler after 4 seconds 
1 gem installed 

捆綁在哪裏鎖定在可以接受的地方,這是什麼意思?我檢查了我的gemfile,它沒有任何內容。我可以解鎖嗎?我正在嘗試運行jekyll的樣板並使用brew安裝紅寶石。

+1

嘗試'包更新',然後做'捆綁執行jekyll服務' – Pavan

+0

看來我運行不同版本的紅寶石......它說'液-4.0.0需要紅寶石版本> = 2.1.0,其中與當前版本,ruby 2.0.0p648'不兼容,但是當我嘗試brew更新ruby時,它會顯示'Error:ruby 2.4.1_1 already installed' – Himmators

+0

'brew update ruby​​'?你沒有使用RVM或RBenv? –

回答

0

「您的包被鎖定爲可尋址...」錯誤僅僅意味着您的Gemfile.lock中指定了一個可尋址的版本,但它尚未安裝在您的機器上。運行bundle install修復了這個問題。

因此,如果您運行以下,你的應用程序應該運行得很好:

$ bundle install 
$ bundle exec jekyll serve 

的「捆紮機(1.13.6)是舊的......」警告只是一個供參考從善良的人在Bundler,鼓勵你升級。如果不影響應用程序,您可以放心地忽略它(但最好保持最新狀態)。