cocopods 命令行執(zhí)行命令時(shí)報(bào)錯(cuò)You don't have write permissions for the /Library/*

www.MyException.Cn 網(wǎng)友分享于:2015-06-12 瀏覽:0次

命令行執(zhí)行命令時(shí)報(bào)錯(cuò)You don't have write permissions for the /Library/***
這是因?yàn)橐獔?zhí)行這些操作時(shí)必須有管理員的權(quán)限(比如更新軟件),比如更新cocoapods時(shí)報(bào)錯(cuò)
soindy:SmartThermo soindy$ gem install cocoapods
Fetching: cocoapods-core-0.37.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
只需要在命令前加上sudo,例如:sudo gem install cocoapods即可.sudo是獲取管理員權(quán)限,現(xiàn)在按照步驟輸入管理員密碼即可.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容