title: npm - Error: EPERM: operation not permitted, unlink
body: <p>Windows 10 1703
  <br>
  Node 6.11.2
  <br>
  npm 5.4.0</p>
  
  <p><strong>Everytime I try to install an npm package (ex: npm i gulp-notify), I receive the following error:</strong></p>
  
  <hr>
  
  <blockquote>
    <p>npm ERR! path
    C:\Users\web-dev\Desktop\barber\node_modules\fsevents\node_modules\ansi-regex\package.json
    <br> npm ERR! code EPERM <br> npm ERR! errno -4048 <br> npm ERR!
    syscall unlink <br> npm ERR! Error: EPERM: operation not permitted,
    unlink 'C:\Users\web-
    <br>dev\Desktop\barber\node_modules\fsevents\node_modules\ansi-regex\package.json'
    npm ERR!     at Error (native) <br> npm ERR!  { Error: EPERM:
    operation not permitted, unlink
    'C:\Users\web-dev\Desktop\barber\node_modules\fsevents\node_modules\ansi-regex\package.json'
    <br> npm ERR!     at Error (native) <br> npm ERR!   stack: 'Error:
    EPERM: operation not permitted, unlink
    \'C:\Users\web-dev\Desktop\barber\node_modules\fsevents\node_modules\ansi-regex\package.json\'\n
    at Error (native)', <br> npm ERR!   errno: -4048, <br> npm ERR!<br>
    code: 'EPERM', <br> npm ERR!   syscall: 'unlink', <br> npm ERR!<br>
    path:
    'C:\Users\web-dev\Desktop\barber\node_modules\fsevents\node_modules\ansi-regex\package.json'
    } <br> npm ERR! npm ERR! Please try running this command again as
    root/Administrator.</p>
  </blockquote>
  
  <hr>
  
  <p>I ran cmd as administrator
  <br>
  I checked folder permissions
  <br>
  I cleared cache even though npm says it does it by itself
  <br>
  I changed npm prefix to C:\Users\User Name\AppData\Roaming\npm
  <br>
  Nothing helps.</p>
  
  <p>Please advise.</p>