Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing in Yarn Pnp mode #36

Closed
agarwalvaibhav0211 opened this issue Aug 18, 2024 · 1 comment
Closed

Failing in Yarn Pnp mode #36

agarwalvaibhav0211 opened this issue Aug 18, 2024 · 1 comment

Comments

@agarwalvaibhav0211
Copy link

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?

@GitSquared
Copy link
Owner

Thanks, that's an issue indeed! changed it to respect the custom directory option.

Released fix in https://github.com/GitSquared/node-geolite2-redist/releases/tag/v3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants