Fix permission errors
Summary
(Summarize the bug encountered concisely)
Starts with runtime errors.
Steps to reproduce
(How one can reproduce the issue - this is very important) Run the image.
What is the current bug behavior?
(What actually happens)
What is the expected correct behavior?
npm ERR! code EACCES
npm ERR! syscall scandir
npm ERR! path /home/node/.npm/_logs
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:0 "/home/node/.npm"
glob error [Error: EACCES: permission denied, scandir '/home/node/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/home/node/.npm/_logs'
}
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
(What you should see instead)
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Give more user permissions
Tasks
-
Bug has been identified and corrected within the container