title: npm ERR! enoent ENOENT: no such file or directory, open '/app/package.json'
body: <p>A bit stuck on this one. Taking a Grider course on Docker through Udemy.com.</p>
  
  <p>I just keep getting the following error when I do:</p>
  
  <pre><code>docker run -p 3000:3000 -v /app/node_modules -v $(pwd):/app 5932996c40dc
  
  npm ERR! path /app/package.json
  npm ERR! code ENOENT
  npm ERR! errno -2
  npm ERR! syscall open
  npm ERR! enoent ENOENT: no such file or directory, open '/app/package.json'
  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!     /root/.npm/_logs/2019-01-30T23_04_17_890Z-debug.log
  </code></pre>
  
  <p>I echo  the command out because I want to see exactly what it is trying to execute and comes back as:</p>
  
  <pre><code>docker run -p 3000:3000 -v /app/node_modules -v /mnt/c/projects/courses/docker_kubernetes/frontend:/app 5932996c40dc
  </code></pre>
  
  <p>I run the image without the <code>-v</code> so that I can start the container and <code>exec -it</code> into it to see what is on the container. It does show everything as it should inside the container. It copied everything into <code>/app</code> in the container.</p>
  
  <p><a href="https://i.stack.imgur.com/P29ZX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P29ZX.png" alt="enter image description here"></a></p>
  
  <p>The command I used to build the image was <code>docker build -f Dockerfile.dev .</code> and remove the <code>node_modules</code> from the local version.</p>
  
  <p>Here is a copy of my repo that has the Dockerfile and such in it: <a href="https://github.com/ishraqiyun77/docker_kubernetes" rel="nofollow noreferrer">https://github.com/ishraqiyun77/docker_kubernetes</a>.</p>
  
  <p>Running in Windows Subsystem for Linux (WSL) on Windows 10 Pro, <code>docker-client</code> is running in WSL, <code>docker-daemon</code> is running in VMWare Workstation Player 15. I did make the <code>.env</code> for good measure with <a href="https://facebook.github.io/create-react-app/docs/troubleshooting#npm-start-doesn-t-detect-changes" rel="nofollow noreferrer"><code>CHOKIDAR_USEPOLLING=true</code></a>. Not convinced that this config is the issue yet, but who knows, it could be.</p>
  
  <p>Also, there is no <code>/root/.npm/_logs/2019-01-30T23_04_17_890Z-debug.log</code> in either the container or the local file system.</p>
  
  <p>I've also changed WSL to instead of having the path <code>/mnt/c/projects</code>... to just be <code>/c/projects</code>.</p>