package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodErr
2017-11-17 20:48
986 查看
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删除就好啦
在这里找到答案: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删除就好啦
相关文章推荐
- gem安装时出现 undefined method `size' for nil:NilClass (NoMethodError) 的解决办法
- undefined method `model_name' for NilClass:Class
- rails undefined method `title' for nil:NilClass
- 使用ControllerAdvice注意事项,Ambiguous @ExceptionHandler method mapped for [class org.springframework.web.bind.MethodArgumentNotValidException]
- zkoss框架异常:org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method setLable not found for class or
- org.apache.ibatis.ognl.MethodFailedException: Method "size" failed for object
- (Rails) : NoMethodError: undefined method cost' for BCrypt::Engine:Class
- Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key
- undefined reference to `vtable for class::method'--链接共享库时出现
- java.lang.NoSuchMethodException: getPackageSizeInfo
- ReactJs 报错 Element type is invalid: expected a string (from built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Me`.
- undefined method `controllers' for nil:NilClass
- undefined method 'before_filter' for Class
- The method newJob(Class<QuartzTest>) is undefined for the type Test
- org.apache.ibatis.ognl.MethodFailedException: Method "size" failed for object
- undefined method `[]' for nil:NilClass
- gitlab ActionView::Template::Error (undefined method `[]' for nil:NilClass): 500错误
- NoMethodError:undefined method to_ISO8601 for nil:NilClass
- jAmbiguous @ExceptionHandler method mapped for [class java.lang.Throwable]:
- undefined method `devise' for User(Table doesn't exist):Class解决方法