I am currently experiencing issues as I install dependencies manually with npm i
for Watchdog Chat Guard (watchdog-chat-guard
). Any solutions to fix this without sudo su
(or even sudo npm i
)?
npm ERR! path /app/node_modules/millisecond/npm-shrinkwrap.json
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/app/node_modules/millisecond/npm-shrinkwrap.json'
npm ERR! [OperationalError: EACCES: permission denied, open '/app/node_modules/millisecond/npm-shrinkwrap.json'] {
npm ERR! cause: [Error: EACCES: permission denied, open '/app/node_modules/millisecond/npm-shrinkwrap.json'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/app/node_modules/millisecond/npm-shrinkwrap.json'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! stack: 'Error: EACCES: permission denied, open ' +
npm ERR! "'/app/node_modules/millisecond/npm-shrinkwrap.json'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/app/node_modules/millisecond/npm-shrinkwrap.json',
npm ERR! parent: 'app'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
Continue on next topic for the dependency issue on ts-node
.