We have recently upgraded from Node 0.12.2 to 8.10.0 on our test server. We are now getting -4048 EPERM when we try to export a Json file. So we went back to the previous version of Node and we are getting the same error! We can write files to that directory from windows and also have created a small node js file to write files to the remote server and it works. We have tried completely removing node and reinstalling (including several server reboots and got nowhere). We initially tried npm cache clear (We have recently upgraded from Node 0.12.2 to 8