Don't write in JSON can u help me please,

I run this :slight_smile:

fs.writeFile('../../prefixcustom.json', JSON.stringify(pprefix, null, 2), (err) => {
         if (err) console.log(err)
    })
but he return : 
{ [Error: EACCES: permission denied, open '../../prefixcustom.json']
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '../../prefixcustom.json' }

I need help thk for reply :blush:


MOD EDIT: formatting

1 Like

I think there is no prefixcustom.json on that path you specified. Try to use npm package path for file paths.

I reccomend using commando, They have prefixes built in, and settings are easy.