你不能以root(Ionic)iOS运行CocoaPods

Was*_*bal 5 ios cocoapods ionic-framework

我收到此错误,当我安装'phonegap-plugin-push'即时收到以下错误,我想我在安装pod时遇到问题.

提前致谢

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

错误:/ Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in`help!':[!]你不能以root身份运行CocoaPods.(CLAide ::帮助)

用法:

$ pod COMMAND

  CocoaPods, the Cocoa library package manager.
Run Code Online (Sandbox Code Playgroud)

命令:

+ 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
Run Code Online (Sandbox Code Playgroud)

选项:

--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>'
Run Code Online (Sandbox Code Playgroud)

Was*_*bal 0

已修复此问题,存在文件夹权限问题