Search code examples
fluttercocoapods

You cannot run CocoaPods as root. (CLAide::Help) Flutter


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

Solution

  • Solution

    Just run this command:

    export PATH=$PATH:/usr/local/bin
    

    and then:

    pod setup
    

    and

    pod install