I’m using docker to run a PHP application and npm to build all the resources for it. When I start docker with docker-compose up, everything works ok. I also start the npm run watch task on the project which builds everything and starts a browser-sync instance in chrome. After 1 or 2 rebuilds of the code due to changes I get the following error:
fs.js:646 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EPERM: operation not permitted, open 'D:projectsevolution7driscollsdriscollspublicfontsblog-script.woff2' at Object.fs.openSync (fs.js:646:18)
I tried creating a separate user for docker and gave it read-only permissions. Also, I took the ownership of the public folder and I run my terminal for npm as an admin with no result. This is on windows 10, also tried running npm with the Linux subsystem and it doesn’t give this error but has issues with watcher/browser-sync.