Random fs error


I keep getting this error on my projects and I am seriously starting to think it’s something to do with Glitch because most of the time it works perfectly fine but then it happens and a restart doesn’t even fix it! If someone can help, I will very much appreciate it!


return binding.read(fd, buffer, offset, length, position);


Error: EIO: i/o error, read

at Object.fs.readSync (fs.js:675:18)

at tryReadSync (fs.js:540:20)

at Object.fs.readFileSync (fs.js:575:19)

at Object.Module._extensions..js (module.js:653:20)

at Module.load (module.js:556:32)

at tryModuleLoad (module.js:499:12)

at Function.Module._load (module.js:491:3)

at Module.require (module.js:587:17)

at require (internal/module.js:11:18)

at Object. (/app/node_modules/ws/index.js:3:19)


Had the same issue few days ago and running npm install in console fixed it, you may also want to check your free disk space if it’s full.