Hello Cookie Tech,
I was wondering if someone could help with a problem I have.
So I need to edit a .json file using a .js file. Now I have done the script to do that:
fs.writeFileSync('../Drivers.json', JSON.stringify('test'))
Now, whenever I run this I get this error:
Error: EPERM: operation not permitted, open '../Drivers.json'
errno: -4048,
syscall: 'open',
code: 'EPERM',
path: '../Drivers.json'
I tried giving everyone permission via the properties’ security tab, but that didn’t work.
So if you know what I’m doing wrong please tell me thanks!