EACCES: permission denied


#1

chmod 777 config.json
using ls -la
-rwxrwxrwx 1 app app 853 Aug 21 13:06 config.json

{ [Error: EACCES: permission denied, open ‘…/config.json’]
errno: -13,
code: ‘EACCES’,
syscall: ‘open’,
path: ‘…/config.json’ }

I can’t write to config.json file


#2

Make sure the path to the file is correct. Try a direct path rather than a relative one e.g. __dirname + '/config.json' if the config.json file is at the root of default /app directory. Failing that, try creating the file from within the editor using the ’ + New File’ button rather than at the command line.