2016-08-20 19 views
2

我使用OS X埃爾卡皮坦10.11.6首先,我有問題,安裝吊艙和能找到在此site..the終端的後續步驟之後,問題闡明問題了它是紅寶石v 2.2.2後,我安裝了它,我得到新的問題,當我嘗試安裝的CocoaPods錯誤:在執行寶石...(GEM ::包裝:: FormatError)元數據包中缺少profile.gem

$ sudo gem install cocoapods 

Password: 

ERROR: While executing gem ... (Gem::Package::FormatError) 
package metadata is missing in profile.gem 

任何幫助將非常感激。謝謝 !

回答

0

我認爲你可能需要卸載並重新安裝。

gem uninstall cocoapods 

sudo gem uninstall cocoapods 

然後

gem install cocoapods 

sudo gem install cocoapods 

你爲什麼要使用sudo?通常沒有必要。另一個stackoverflow後提到做到這一點。

+0

我嘗試之前..沒有改變 –

相關問題