-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] Can't Install Two Versions of Vulnerable Package #7921
Comments
Again I'm unable to install two version of this package but getting another output:
|
@sahin52 first run the npm init -y to create a package.json with necessary metadata and then add your dependencies. kchindam-infy@kalyankumars-MacBook-Pro test % node -v added 2 packages, and audited 3 packages in 4s 1 moderate severity vulnerability To address all issues, run: Run |
@kchindam-infy thanks, it works by adding name to package.json |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
TLDR: I am trying to install two versions of a vulnerable package, both are needed. Getting
Cannot read properties of null (reading 'name')
and packages are not installed.Expected Behavior
Two versions could be installed together. I also added vulnerabilities to allowlist of audit-ci, but still can 't install.
Steps To Reproduce
I have no other file, to be able to test properly.
It generates
Cannot read properties of null (reading 'name')
or
these work properly.
Also, same problem does not happen with at least one safe package, for example:
This package does not have a dependency, so it is not related to dependencies. Also adding audit-ci and allowing these vulnerabilities also does not change this behaviour
Environment
The text was updated successfully, but these errors were encountered: