hey guy, I’m docker beginner, I followed the tutorial on the official website to learn ‘Access a local folder from a container’ , but my todo-app-1 can’t running ,the error logs is:
2024-01-07 21:21:27 npm ERR! code EPERM
2024-01-07 21:21:27 npm ERR! syscall open
2024-01-07 21:21:27 npm ERR! path /usr/src/app/package.json
2024-01-07 21:21:27 npm ERR! errno -1
2024-01-07 21:21:27 npm ERR! Error: EPERM: operation not permitted, open ‘/usr/src/app/package.json’
2024-01-07 21:21:27 npm ERR! [Error: EPERM: operation not permitted, open ‘/usr/src/app/package.json’] {
2024-01-07 21:21:27 npm ERR! errno: -1,
2024-01-07 21:21:27 npm ERR! code: ‘EPERM’,
2024-01-07 21:21:27 npm ERR! syscall: ‘open’,
2024-01-07 21:21:27 npm ERR! path: ‘/usr/src/app/package.json’
2024-01-07 21:21:27 npm ERR! }
2024-01-07 21:21:27 npm ERR!
2024-01-07 21:21:27 npm ERR! The operation was rejected by your operating system.
2024-01-07 21:21:27 npm ERR! It is likely you do not have the permissions to access this file as the current user
2024-01-07 21:21:27 npm ERR!
2024-01-07 21:21:27 npm ERR! If you believe this might be a permissions issue, please double-check the
2024-01-07 21:21:27 npm ERR! permissions of the file and its containing directories, or try running
2024-01-07 21:21:27 npm ERR! the command again as root/Administrator.
2024-01-07 21:21:27
2024-01-07 21:21:27 npm ERR! A complete log of this run can be found in:
2024-01-07 21:21:27 npm ERR! /home/node/.npm/_logs/2024-01-07T13_21_27_058Z-debug-0.log
How can I add permissions to a compose.yaml, My operating system is Mac m1