
我正在嘗試使用AWS FARGATE啟動nodejs容器,我面臨的問題是fargate給了我這個錯誤:
cannot find this module "/path/to/file/webrtc.js"
當我啟動容器時從命令部分執行 npm install 時,它給了我
npm WARN enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'
npm WARN saveError EACCES: permission denied, open '/usr/src/app/package-lock.json.12345678'
npm WARN saveError ENOENT: no such file or directory, open '/usr/src/app/package.json'
如何給予許可?我嘗試更改 json 檔案並將 user = null 與 user = root 交換,但出現相同的錯誤。
謝謝你,