首页 > 解决方案 > 如何解决在 Windows 7 上运行的 docker 工具箱中的此错误我尝试通过添加共享文件夹来配置虚拟框

问题描述

$ 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

标签: dockerdocker-composedocker-toolboxdocker-run

解决方案


推荐阅读