node-geolite2-redist icon indicating copy to clipboard operation
node-geolite2-redist copied to clipboard

Failing in Yarn Pnp mode

Open agarwalvaibhav0211 opened this issue 6 months ago • 0 comments

We are trying to use this package in yarn pnp. Since the package by default stores the database in the package itself, and in Yarn , the package is packed into a ZipFS file, we are passing the db storage location.

But we are still facing the following error

Error: EROFS: read-only filesystem, rm '/node_modules/geolite2-redist/dbs-tmp'

I've traced down the error to https://github.com/GitSquared/node-geolite2-redist/blob/master/src/auto-updater.ts#L28. Why are we cleaning up the default path? Can we add a check here to not try to delete in case the default path is a read only path?

agarwalvaibhav0211 avatar Aug 18 '24 19:08 agarwalvaibhav0211