首页 > 技术文章 > npm安装时出现run `npm audit fix` to fix them, or `npm audit` for details

NanKe-Studying 2020-11-14 15:16 原文

解决npm安装时出现run `npm audit fix` to fix them, or `npm audit` for details

1、第一种解决办法

npm audit fix
npm audit fix --force
npm audit

2、第二种解决办法

1 删除已经安装的:node_modules 和 package-lock.json
2 修改 package.json 格式如下
3 npm audit fix --force
4 npm instal

 

推荐阅读