package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodErr

来源:互联网 发布:js done方法 编辑:程序博客网 时间:2024/06/08 23:35

Mac是10.13.1 安装CocoaPods  

在这里找到答案:http://blog.csdn.net/chenyyhh92/article/details/53232816

里面说 将%RUBY_HOME%/lib/ruby/gems/2.2.0/cache 文件夹中对应的gem删掉即可(这里是pdf-writer-1.1.8.gem),再重新执行命令。

小白不知道什么是%RUBY_HOME%

在finder中 按下command+shift+G

在文本框输入/lib/ruby/回车就可以再顺着gems/2.2.0/cache往下找了


我的bug是

ERROR:  Error installing cocoapods:

invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /Library/Ruby/Gems/2.3.0/cache/activesupport-4.2.10.gem


所以进入cache 找到activesupport-4.2.10.gem删除就好啦



阅读全文
0 0
原创粉丝点击