Reputation: 307
when I run the flutter doctor command or other flutters command on ubuntu it works fine.. but when I switch to root user with
sudo su
then I run
flutter doctor
then it throws an Error
Command 'flutter' not found, but can be installed with:
snap install flutter
I don't know why this happening can some one help me to find actual problem thanks in advance ..
Upvotes: 0
Views: 355
Reputation: 307
as @Chance helped me to add flutter path in root bashrc file i have added flutters path in /etc/bash.bashrc file and now its working in root user also.. thx again @Chance
Upvotes: 2