解决github提示安全漏洞的问题

今天在提交代码的时候发现github提示了这样的错误:

We found potential security vulnerabilities in your dependencies. Only the owner of this repository can see this message.

解决办法,将packge.lock.json和yarn.lock删除,然后上传代码,问题解决

原文地址:https://www.cnblogs.com/SaberInoryKiss/p/11883529.html