prettier creates a node_modules folder when formatting some files, which it should not as cache is not enabled. Setting the cache to a file works around this. See https://github.com/prettier/prettier/issues/13032