因此,我将Goorm IDE用于我的React Native项目。每当我使用任何pod命令时,都会产生以下输出:
root@goorm:/workspace/DJCSI# pod env
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
Traceback (most recent call last):
4: from /usr/local/bin/pod:23:in `<main>'
3: from /usr/local/bin/pod:23:in `load'
2: from /var/lib/gems/2.5.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
1: from /var/lib/gems/2.5.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:47:in `run'/var/lib/gems/2.5.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ 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
Options:
--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
请帮助。我不明白可能是什么问题。
答案 0 :(得分:0)
您需要将export LANG = en_US.UTF-8添加到〜/ .profile