Console error in Windows 10: "Caching failed for pack: Error: Can't resolve 'fsevents'"

I’m running the Dato blog example under Windows 10 and I’m getting an error message appearing in the CLI along the lines of Caching failed for pack: Error: Can't resolve 'fsevents'.

This appears to be to do with Chokidar, which is used to monitor files on the file system. The fsevents module is to do with Mac OS and should be set to false under Windows 10. Unfortunately, I can’t see where this configuration is. Could someone look into this, please?

fsevents always gave me headaches in Windows. In fact almost every node.js thing did, since so many were made for *NIX and macOS and rarely tested on Windows.

Have you tried running it in WSL or Multipass instead?

1 Like