-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular Cli giving vulnerability error #10799
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
Comments
Is it your machine having Git installed ? |
@Santhosh25 no git is not installed. But it is not compulsory to install git if working with Angular. |
I'm having this same issue right now. Here are the packages it's complaining about. Tried installing karma v2.0.2 as it suggested and ended up with even more vulnerabilites than the original warning.
|
Can confirm the issue is a real thing. |
Yes, it has to do with dependencies. I did it too, with the following specs:
Post installation, I saw these messages:
After following the prompt, the tally changed:
|
This is a result of the new npm version including the It isn't some new issue with the Angular CLI, npm just introduced new functionality in npm to warn users about vulnerabilities in the packages they're installing - so there's no "new" vulnerability in Angular, it's just that now npm is now warning you about vulnerabilities that already existed: Most of the issues stem from Karma, so it'd need to be fixed there for the Angular team to pull in a new Karma version karma-runner/karma#2994 |
+1 |
If I understand this correctly, as these vulnerabilities are due to Karma (in my case all of them are from Karma, except for 1 which was from Protractor), that means the end-product Angular application prod or dev build wouldn't have any vulnerabilities as this is only for the testing kit, correct? |
Closing as this is being tracked here: #10963 |
That work for me : |
+1 |
I resolve this issue by updating the [email protected] and [email protected] using below cmd
|
For those who came across this issue like I just did, @meanMonk is correct - updating Karma is a viable solution for this issue:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Observed behavior
Desired behavior
Fix this
Mention any other details that might be useful (optional)
Tried these things, but nothing worked:
The text was updated successfully, but these errors were encountered: