title: Not able to run 'npm install' on vagrant homestead
body: <p>I'm trying to install Gulp &amp; Elixir on my Laravel project but I keep getting errors when I run 'npm install'. I've also tried 'sudo npm install' but no luck there.</p>
  
  <p>My Node version is: 1.4.14</p>
  
  <p>It switches between these two:</p>
  
  <p><img src="https://i.stack.imgur.com/iJZAo.png" alt="enter image description here"></p>
  
  <p>For this error there was a solution posted here: <a href="https://harvsworld.com/2015/how-to-fix-npm-install-errors-on-vagrant-on-windows-because-the-paths-are-too-long/" rel="nofollow noreferrer">https://harvsworld.com/2015/how-to-fix-npm-install-errors-on-vagrant-on-windows-because-the-paths-are-too-long/</a></p>
  
  <p>But this has not solved the issue seeing it still happens after following the steps.</p>
  
  <p>I also sometimes get these errors (the list goes on...):
  <img src="https://i.stack.imgur.com/rMz7h.png" alt="enter image description here"></p>
  
  <p>Anyone know a solution? I haven't found anything yet after a couple hours of searching..</p>