1

I am using express-winston to write to my log file in /var/log/project/project.log. However, I keep getting

Error: EACCES: permission denied, open /var/log/project/project.log.

Does anyone know a way around this?

Thanks in advance!

Trung Tran
  • 13,141
  • 42
  • 113
  • 200
  • 1
    first i would check permissions on the file. recently on linux server I had to check what user the node.js process was running under and then had to allow that user to have access to the file for something similar to work. if you can add more detail to your post that would help. – tamak Aug 22 '17 at 01:13
  • 2
    Have you set the permissions for the user running the node app? As a quick workaround, you can also try running the node server with sudo. – jrook Aug 22 '17 at 01:14

0 Answers0