Reputation: 6695
After pushing a new repo to GitHub I got this security alert from GitHub:
According to GitHub, the effected file is package-lock.json.
To fix the issue, I did this:
But it didn't help and I still get the same security alert from GitHub.
How can I fix this?
Upvotes: 7
Views: 6704
Reputation: 56624
You should never need to delete or edit your package-lock.json
manually. In this case, the file you want to edit is package.json
(no -lock
). Specifically:
package.json
in your favorite editor."tar": "…"
.">=4.4.2"
.npm install
.package.json
and package-lock.json
.Upvotes: 2