Comments (9)
We were having the same issue after upgrading to node 16 and audit-ci 6.2.x.
I just figured out that we had a private registry in the project's .npmrc file. Once I overrode the registry to the default via the audit-ci command line (e.g. audit-ci --registry https://registry.npmjs.org
), I no longer got the error. Setting it in the audit-ci config file worked also.
You can reproduce the error by simply specifying a bogus registry (e.g. audit-ci --registry http://localhost
).
@quinnturner It would be great to get a fix for this, as it has caused lots of confusion!
from audit-ci.
Do you have a lockfile?
Also, please consider updating to the latest audit-ci
, especially since you're using NPM v8. It's pretty much a rewrite of the dependency management algorithm and is pretty much required nowadays.
from audit-ci.
Yes we have a lockfile, and we are also running into this error when using the latest version of audit-ci.
from audit-ci.
Do you have private dependencies?
Is it possible for you to email me the package.json
and lockfile? You can remove the name of the project; I'd like a reproduction to help understand where the issue occurs. quinnDOTturnerATuwaterlooDOTca
from audit-ci.
Are there any updates/findings on this? Also facing a similar issue.
When using node v12 and npm v6.14.15, this issue is not present.
Issue:
audit-ci version: 6.0.0
Cannot convert undefined or null to object
Exiting...
Versions used which is associated with the issue:
Audit-ci: 6.2.0 (latest at the moment)
NPM: 8.1.2
Nodejs: v16.13.2
from audit-ci.
Thank you @1sherlynn for the report! Good to know that it's still occurring and that it's on NPM 8. Hoping you can post the result of this command: npm audit --json
from audit-ci.
Thanks for the heads up @aarbro, will look into it and mark this as a bug!
from audit-ci.
PR to resolve the registry issue @aarbro mentioned (and might catch other NPM 7+ related issues): #258
from audit-ci.
Released in 6.2.1
. If you're still having this issue, please message!
from audit-ci.
Related Issues (20)
- Support allowlisting private packages by module HOT 7
- Recommend pinning to commit SHA or release tag HOT 3
- Add expiration time for allow list items HOT 1
- Allow notes for allowlist items HOT 2
- [Feature] Support Gitlab SAST report-type HOT 2
- Let the severity level influence the json output HOT 1
- Fail on unmatched ignores HOT 1
- Invalid JSON config file when using new allowlist NSPRecord syntax HOT 3
- Add support for registry flag for PNPM HOT 1
- Support Yarn's `--exclude` HOT 2
- Handle errors from Yarn Berry more gracefully HOT 2
- Tests should include all major Yarn versions HOT 2
- packages starting with "@" are not working in allowlist HOT 2
- Replace event-stream with something secure and supported HOT 4
- The audit report format changed? HOT 2
- CI commands fail because no version 7 HOT 1
- Support Yarn v4 HOT 6
- v7 ignores command line arguments HOT 2
- SyntaxError: The requested module 'yargs/yargs' does not provide an export named 'default' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audit-ci.