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

Fix ENOAUDIT error during npm audit #4459

Open
jumde opened this issue May 15, 2019 · 1 comment
Open

Fix ENOAUDIT error during npm audit #4459

jumde opened this issue May 15, 2019 · 1 comment
Assignees

Comments

@jumde
Copy link
Contributor

jumde commented May 15, 2019

CI often fails with

Your configured registry (https://registry.npmjs.org/) does not support audit requests, or the audit endpoint is temporarily unavailable.

Figure out a way to get around this.

@mbacchi
Copy link
Contributor

mbacchi commented Jul 22, 2020

The audit deps script runs npm audit with some arguments one single time only. We could do some error handling here and if the Popen result is not 0, or we can detect the the audit endpoint is temporarily unavailable error message, we could sleep and retry a certain number of times. I'd recommend 3 retries for at least a total of 30 seconds in order to attempt to work around an isolated overloaded NPM registry endpoint.

This is also something that could fix Travis CI issues not just our CI build itself.

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

No branches or pull requests

3 participants