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

UnhandledPromiseRejectionWarning from rimraf in v2 #13

Closed
justincy opened this issue Dec 7, 2020 · 2 comments
Closed

UnhandledPromiseRejectionWarning from rimraf in v2 #13

justincy opened this issue Dec 7, 2020 · 2 comments

Comments

@justincy
Copy link

justincy commented Dec 7, 2020

(node:50918) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: rimraf: callback function required
    at rimraf (/Users/justinyork/genward/genward-api/node_modules/geolite2-redist/node_modules/rimraf/rimraf.js:56:10)
    at /Users/justinyork/genward/genward-api/node_modules/geolite2-redist/index.js:90:6

I think it's caused by this line:

rimraf(downloadPath+'-tmp');

This is the error logged to the console right before it:

geolite2 self-update error: [Error: ENOENT: no such file or directory, open '/Users/justinyork/genward/genward-api/node_modules/geolite2-redist/dbs-tmp/GeoLite2-ASN.mmdb'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/justinyork/genward/genward-api/node_modules/geolite2-redist/dbs-tmp/GeoLite2-ASN.mmdb'
}
@GitSquared
Copy link
Owner

Will look into this today! It has affected my downstream repos too.

@GitSquared
Copy link
Owner

GitSquared added a commit that referenced this issue Dec 13, 2020
github-actions bot pushed a commit that referenced this issue Dec 13, 2020
github-actions bot pushed a commit that referenced this issue Dec 13, 2020
GitSquared added a commit that referenced this issue Jan 23, 2022
GitSquared added a commit that referenced this issue Jan 23, 2022
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