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

时间:2023-03-08 18:59:38
转载:解决npm安装时出现run `npm audit fix` to fix them, or `npm audit` for details

转载自:https://blog.csdn.net/qq_39165556/article/details/89333028

1、第一种解决办法

 npm audit fix
npm audit fix --force
npm audit

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

2、第二种解决办法

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

转载自:https://blog.csdn.net/qq_39165556/article/details/89333028

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

我的补充:

vsCode 终端的命令:进入到项目路径下,执行。比如项目名叫testDemo:

 PS D:\vsCode\testDemo npm install