Why is Flutter only running as Superuser? Why is Flutter only running as Superuser? dart dart

Why is Flutter only running as Superuser?


Flutter maintains several files in it's installation directory like Dart snapshot files, this is why /Applications, which has by default write permissions only for the root user, is not a good place to install Flutter to.

/Users/yourUser/flutter would work fine without root privileges.


I tried changing the location of flutter as answered by Günter Zöchbauer. But, flutter still needed superuser privileges. So, I gave them directly like this

sudo chown -R $USER /Users/yourUser/flutter/

This worked fine for me. Basically, giving permissions to the user for the specific folder.