Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行npm audit一个子包漏洞列表时,弹出^n级别很深,然后我打开我的package-lock.json文件并手动更新它们,然后删除我的node_modules并立即运行npm i这工作并显示0 vulnerabilities但是当切换分支然后以某种方式返回该分支时漏洞是回来,我的 package-lock.json 文件没有保存。
npm audit
^n
package-lock.json
node_modules
npm i
0 vulnerabilities
问题:切换分支时,为什么我手动修复的漏洞突然又回来了?