title: npm ERR! Error: EPERM: operation not permitted,
body: <p>I am trying to run npm install and keep getting permission errors regardless if I run it as an admin. My environment specifications are the following.</p>
  
  <pre><code>Windows 7
  Virtual Box 5.1
  Vagrant 2.0.1
  Homestead Box
  NPM 5.5.1
  NODE 8.9.1
  </code></pre>
  
  <p>I have already searched through different support sites and tried suggested fixes but I always get a new issue related to permission with error:</p>
  
  <pre><code>npm ERR! ETXTBSY: text file is busy, rmdir
  </code></pre>
  
  <p>or</p>
  
  <pre><code>npm ERR! Error: EPERM: operation not permitted,
  </code></pre>
  
  <p>I used the command `npm install --no-bin-links' and it still do not work. </p>
  
  <pre class="lang-js prettyprint-override"><code>sudo npm install --no-bin-links
  npm ERR! path /home/vagrant/Code/project/node_modules/sum-up
  npm ERR! code EPERM
  npm ERR! errno -1
  npm ERR! syscall rename
  npm ERR! Error: EPERM: operation not permitted, rename '/home/vagrant/Code/project/node_modules/sum-up' -&gt; '/home/vagrant/Code/project/node_modules/.sum-up.DELETE'
  npm ERR!  { Error: EPERM: operation not permitted, rename '/home/vagrant/Code/project/node_modules/sum-up' -&gt; '/home/vagrant/Code/project/node_modules/.sum-up.DELETE'
  npm ERR!   cause:
  npm ERR!    { Error: EPERM: operation not permitted, rename '/home/vagrant/Code/project/node_modules/sum-up' -&gt; '/home/vagrant/Code/project/node_modules/.sum-up.DELETE'
  npm ERR!      errno: -1,
  npm ERR!      code: 'EPERM',
  npm ERR!      syscall: 'rename',
  npm ERR!      path: '/home/vagrant/Code/project/node_modules/sum-up',
  npm ERR!      dest: '/home/vagrant/Code/project/node_modules/.sum-up.DELETE' },
  npm ERR!   stack: 'Error: EPERM: operation not permitted, rename \'/home/vagrant/Code/project/node_modules/sum-up\' -&gt; \'/home/vagrant/Code/project/node_modules/.sum-up.DELETE\'',
  npm ERR!   errno: -1,
  npm ERR!   code: 'EPERM',
  npm ERR!   syscall: 'rename',
  npm ERR!   path: '/home/vagrant/Code/project/node_modules/sum-up',
  npm ERR!   dest: '/home/vagrant/Code/project/node_modules/.sum-up.DELETE' }
  npm ERR!
  npm ERR! Please try running this command again as root/Administrator.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/vagrant/.npm/_logs/2018-01-23T19_51_11_713Z-debug.log
  </code></pre>