title: Error: EACCES: permission denied, unlink - when run $ ionic start
body: <p>I am just getting started with ionic, and I am now facing a blocker in a very early step to run ionic.</p>
  
  <p>I am using OS: Linux Mint 18 Cinnamon 64 bit</p>
  
  <p>Node version : v10.0.0 (installed from NVM without root access)</p>
  
  <p>NPM version : 5.6.0 (installed from NVM without root access)</p>
  
  <p>I am following this tutorial:
  <a href="https://coursetro.com/posts/code/36/Installing-Ionic-2-&amp;-Starting-a-Project" rel="nofollow noreferrer">https://coursetro.com/posts/code/36/Installing-Ionic-2-&amp;-Starting-a-Project</a></p>
  
  <p>I install ionic by:</p>
  
  <pre><code>$ npm install -g ionic cordova
  </code></pre>
  
  <p>It returns this:</p>
  
  <pre><code>home/brian/.nvm/versions/node/v10.0.0/bin/cordova -&gt; /home/brian/.nvm/versions/node/v10.0.0/lib/node_modules/cordova/bin/cordova
  /home/brian/.nvm/versions/node/v10.0.0/bin/ionic -&gt; /home/brian/.nvm/versions/node/v10.0.0/lib/node_modules/ionic/bin/ionic
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules/ionic/node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
  
      cordova@8.0.0
      ionic@3.20.0
      added 677 packages in 16.679s
  </code></pre>
  
  <p>Then I checked if cordova and ionic is installed by $ ionic -v , and it returns</p>
  
  <pre><code>3.20.0
  </code></pre>
  
  <p>I guess it means ionic is installed despite of the WARN message.</p>
  
  <p>I then try to run the next step of tutorial:</p>
  
  <pre><code>$ ionic start firstProject blank
  </code></pre>
  
  <p>Then this error show up:</p>
  
  <pre><code>? The directory firstProject contains file(s) that could conflict. Would you like to overwrite the directory with this new project? Yes
  :heavy_multiplication_x: Creating directory ./firstProject - failed!
  Error: EACCES: permission denied, unlink ‘/home/brian/firstProject/.editorconfig’
  </code></pre>
  
  <p>I have tried to give permission to that path by:</p>
  
  <pre><code>$ sudo chown -R brian /home/brian/firstProject/.editorconfig
  </code></pre>
  
  <p>But still, the same error persists when I run $ ionic start firstProject blank</p>
  
  <p>I also have tried running the command using root $ sudo ionic start firstProject blank, but it returns</p>
  
  <pre><code>sudo: ionic: command not found.
  </code></pre>
  
  <p>I have tried to install ionic without global attributes, but the result is that it cannot be installed because of that npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3</p>
  
  <p>Has anyone been able to resolve this kind of issue? Any help would be appreciated. Thanks!</p>