So Hello,
I know there are many similar Questions but only a few of them a specifically for Flutter.
My Problem:
I want to run my Flutter project but then this error shows up:
CocoaPods not installed or not in valid state.
Then i install cocoapods with this commant:
udo gem install -n /usr/local/bin cocoapods
However if i want to run:
pod install
it show this error:
[!] You cannot run CocoaPods as root. (CLAide::Help)
Thanks for any answer stackoverflow is my last hope
LG
Solution
Just run this command:
export PATH=$PATH:/usr/local/bin
and then:
pod setup
and
pod install
question from:
https://stackoverflow.com/questions/65944484/you-cannot-run-cocoapods-as-root-claidehelp-flutter 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…