-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot read property 'reduce' of undefined #38
Comments
I have just noticed a similar thing when I tried to run Here's my error:
Trying to get around a fairly widespread |
Just wanted to clarify that I encountered the error while running both |
I'm afraid I have the same issue.
error: >>>> npm audit --json --registry https://registry.npmjs.org
>>>> exit: 0
TypeError: Cannot read property 'reduce' of undefined
at Object.askForResolutions (/node_modules/npm-audit-resolver/src/resolve/auditResolver.js:13:50)
at node_modules/npm-audit-resolver/resolve.js:17:30
at processTicksAndRejections (internal/process/task_queues.js:93:5) EDIT: I think its related to the newest version of NPM (currently I have 7.12.1) EDIT 2: I can confirm that installing older I hope it will be helpful to someone ;) |
Hi, thanks for reporting. It's a duplicate. npm version 7 has introduced a significant breaking change to the audit output and I'm only now figuring it out. For now, a workaround is to use npm6 or yarn1 audit capabilities or installing npm6 as a dev dependency if that's more suitable. |
closing in favor of #34 |
I just installed
npm-audit-resolver
as described and executedresolve-audit
and immediately got this error message:My intention of using this tool is to fix all dependencies listed by
npm audit
except one, which triggers a deprecation warning about several dozen times. As this deprecation is located in an external (commercial) package which I can't fix I want to keep Sass version < 1.32.0 until the vendor provides a fix.The text was updated successfully, but these errors were encountered: