title: Why is Flutter only running as Superuser?
body: <p>I recently tried installing the <a href="https://flutter.io/" rel="nofollow noreferrer">Flutter</a> framework on my Macbook Pro (Early 2015, MacOS v10.13.6). I unzipped the packages in the <code>/Applications</code> directory and created the respective path in my bash profile. However, when running the <code>flutter doctor</code> command on Terminal as the default user I encounter the following error.</p>
  
  <pre><code>shlock: open(/Applications/flutter/bin/cache/shlock2538): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2540): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2542): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2544): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2546): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2548): Permission denied
  shlock: open(/Applications/flutter/bin/cache/shlock2550): Permission denied
  </code></pre>
  
  <p>When I run the <code>flutter doctor</code> command using the superuser privileges (<code>sudo</code>), it is able to run, and I get the following terminal output.</p>
  
  <pre><code>Woah! You appear to be trying to run flutter as root.
     We strongly recommend running the flutter tool without superuser privileges.
    /
  
  Doctor summary (to see all details, run flutter doctor -v):
  [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en)
  [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
  [!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
      ✗ CocoaPods not installed.
          CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
          Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
          For more info, see https://flutter.io/platform-plugins
        To install:
          brew install cocoapods
          pod setup
  [✓] Android Studio (version 3.1)
  [!] Connected devices
      ! No devices available
  
  ! Doctor found issues in 2 categories.
  </code></pre>
  
  <p>I would rather prefer running Flutter as a default user rather than with superuser privileges (even since I got a warning from the framework to run as a default user).</p>
  
  <p>Can anyone please help me understand how I can fix this error and start running the Flutter framework using my default user account? Thank you.</p>