Open bryanpizzillo opened 1 month ago
Removing r4r gets the error faster, but it still happens.
root@8a855308b6b6:/var/www/docroot/profiles/custom/cgov_site/themes/custom/ncids
_trans/front-end# npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
npm WARN logfile errno: -13,
npm WARN logfile code: 'EACCES',
npm WARN logfile syscall: 'scandir',
npm WARN logfile path: '/root/.npm/_logs'
npm WARN logfile }
> ncids_trans@1.0.0 clean:legacy-sprite
> rimraf ./build && rimraf ./src/styles/legacy-sprites/_svg-sprite-map.scss
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
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 33:33 "/root/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Issue description
This error below started happening recently-ish. A restart of the container fixes it.