title: NPM not working on Virtualbox shared folder under Ubuntu on a Windows 10 host
body: <p>I'm trying to set-up a development environment on a Virtualbox machine using Vagrant. I'm using Windows 10 as a host machine, and ubuntu/bionic64 as a guest machine.</p>
  <p>My <code>package.json</code> file is located under a shared directory between the host machine and the guest machine. However whenever I run <code>npm install --no-bin-links</code> I do get the following error:</p>
  <pre><code>npm ERR! code ENOENT
  npm ERR! syscall open
  npm ERR! path /home/vagrant/www/wp-content/plugins/my-plugin/node_modules/array-initial/node_modules/is-number/package.json.1640612897
  npm ERR! errno -2
  npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/www/wp-content/plugins/my-plugin/node_modules/array-initial/node_modules/is-number
  /package.json.1640612897'
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/vagrant/.npm/_logs/2021-01-19T05_31_47_272Z-debug.log
  </code></pre>
  <p>Inside the guest machine, if I copy the <code>package.json</code> and <code>package-lock.json</code> into another directory that is not shared, and then run <code>npm install</code> everything works perfectly.</p>
  <pre class="lang-sh prettyprint-override"><code>mkdir /tmp/test/
  cp package.json package-lock.json /tmp/test/
  cd /tmp/test/ &amp;&amp; npm install 
  # NPM Packages are installed successfully!
  </code></pre>
  <p>I think this error is specific to Windows, as I've been a user of Ubuntu for years, and never had a similar issue. I only started using Windows a week ago.</p>
  <p>The strange thing is, I also have another development environment on the same machine, and NPM works just fine, without any issues on shared folders!</p>
  <p>I used the <code>--no-bin-links</code>, so I don't think the issue has anything to do with the symbolic links.</p>
  <p>Looking into the <code>strace</code> output, I can't see when this file <code>node_modules/array-initial/node_modules/is-number /package.json.1640612897</code> was created.</p>
  <p><a href="https://gist.github.com/kerkouch/9fcfd3ee6bd6e54c06a8cdcc3360d07f" rel="nofollow noreferrer">NPM log</a></p>
  <p><a href="https://gist.github.com/kerkouch/a3262a0956e0f012a9c0597041013d60" rel="nofollow noreferrer">Strace log</a></p>