首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能以根(Ionic) iOS身份运行CocoaPods

不能以根(Ionic) iOS身份运行CocoaPods
EN

Stack Overflow用户
提问于 2017-08-04 04:28:08
回答 1查看 2.8K关注 0票数 6

我得到这个错误,当我安装'phonegap-plugin-push‘时,我得到了以下错误,我想我在安装pods时遇到了问题。

提前感谢

无法安装‘phonegap-plugin-push’:未定义

错误: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in‘`help!':!您不能以根用户身份运行CocoaPods。(CLAide::Help)

用法:

代码语言:javascript
复制
$ pod COMMAND

  CocoaPods, the Cocoa library package manager.

命令:

代码语言:javascript
复制
+ cache      Manipulate the CocoaPods cache
+ env        Display pod environment
+ init       Generate a Podfile for the current directory
+ install    Install project dependencies according to versions from a
             Podfile.lock
+ ipc        Inter-process communication
+ lib        Develop pods
+ list       List pods
+ outdated   Show outdated project dependencies
+ repo       Manage spec-repositories
+ setup      Setup the CocoaPods environment
+ spec       Manage pod specs
+ update     Update outdated project dependencies and create new Podfile.lock

选项:

代码语言:javascript
复制
--silent     Show nothing
--version    Show the version of the tool
--verbose    Show more debugging information
--no-ansi    Show output without ANSI codes
--help       Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
EN

回答 1

Stack Overflow用户

发布于 2020-10-01 22:07:10

你有没有使用sudo来安装它?这就是为什么它会给你错误。您可以使用直接安装,而无需使用sudo。应该能行得通。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45493974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档