0
$ docker run -p 3000:3000 -v "/app/node_modules" -v "$(pwd):/app" 4a1158abb76e
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /app/package.json
npm ERR! errno -2
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/2020-05-07T07_33_16_702Z-debug.log
Stefano
  • 4,730
  • 1
  • 20
  • 28
  • I'd recommend deleting both `-v` options, since they overwrite the application code in the image and cause Docker to completely ignore any updates in your `package.json` file. You can use a Node installation on your host for a live-development environment. – David Maze May 07 '20 at 10:17
  • Is there any way to do that in docker I am new to Docker – Deepesh Acharya May 08 '20 at 11:01

0 Answers0