背景:执行npm install 出现如下提醒

added 253 packages from 162 contributors and audited 1117 packages in 42.157sfound 5 vulnerabilities (1 low, 4 high)run `npm audit fix` to fix them, or `npm audit` for details html

按照控制台提示的命令,输入‘npm audit fix’后,控制台提示:

1 package update for 5 vulns involved breaking changes
2
3 (use `npm audit fix --force` to install breaking changes; or do it by hand)

输入:‘npm audit fix --force’后,控制台提示:

added 199 packages from 111 contributors, removed 64 packages and updated 23 packages in 42.194sfixed 5 of 5 vulnerabilities in 1117 scanned packages1 package update for 5 vulns involved breaking changes(installed due to `--force` option)

重新输入‘npm audit’:

=== npm audit security report === found 0 vulnerabilities in 4598 scanned packages

终于一切正常。

出于好奇,从npm官网上查阅了对于npm audit fix的相关介绍。

npm audit : npm@5.10.0 & npm@6,允许开发人员分析复杂的代码,并查明特定的漏洞和缺陷。

npm audit fix :npm@6.1.0,  检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,而不必再自己进行跟踪和修复。

转载于:https://www.cnblogs.com/edensyd/p/9604760.html

npm audit fix相关推荐

  1. ubuntu安装npm(npm install)时报错:run `npm audit fix` to fix them, or `npm audit` for details

    主要还是安装权限问题,最好先切换到root用户下,再执行指令(root用户下不用加sudo) 执行npm install,然后还报错就用npm audit fix,还报错就npm audit fix ...

  2. webpack、sass-loader、npm audit fix、npm audit fix --force兼容性问题

    sass-loader兼容性问题 PS E:\dome\automated-test-platform-vue2> npm install sass@~1.32 sass-loader@10.1 ...

  3. npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `

    文章目录 npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, ...

  4. 解决提示“npm audit fix“问题

    一.问题 最近在自学React Native,在使用npm安装一些第三方库的时候,发现总是报错.例如 我只是想安装react-native-screens 和react-native-safe-are ...

  5. npm--踩坑--npm audit fix 解决方法

    参考:https://www.jianshu.com/p/f19ba506f664 看到 npm audit fix --force //强制安装最新的依赖项大概明白了上面问题的所在. 直接运行 -- ...

  6. npm audit fix命令使用

    执行npm install 出现如下提醒 added 253 packages from 162 contributors and audited 1117 packages in 42.157sfo ...

  7. npm - 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `npm au

    完整报错 我正准备 npm 装包,结果失败了,并提示如下报错信息: found 808 vulnerabilities (804 low, 4 moderate)run `npm audit fix` ...

  8. found 2 critical severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for deta

    解决办法npm audit fix npm audit fix npm audit fix --force npm audit 然后 npm run dev

  9. Vue -- 初始化安装时出现run `npm audit fix` to fix them, or `npm audit` for details

    初始化 npm install,出现run `npm audit fix` to fix them, or `npm audit` for details,则可执行以下命令: npm audit fi ...

最新文章

  1. MySQL性能优化的21条最佳经验
  2. java多线程如何设置优先级
  3. mysql数据库约束无符号_mysql 数据类型 约束条件
  4. openssl创建CA、申请证书及其给web服务颁发证书
  5. 重用CL_CRM_QUERYAUI_RUN_BTIL实现order search
  6. 2、基于wsgiref模块DIY一个web框架
  7. CountDownLatch,CyclicBarrier和Semaphore
  8. WebComponent魔法堂:深究Custom Element 之 从过去看现在
  9. hdu6110:路径交
  10. win centos php语法,linux(centos5.5)/windows下nginx开启phpinfo模式功能的配置方法分享
  11. angularjscheckbox全选_Vue Checkbox全选和选中的方法
  12. 链接Linux工具(SecureCRT)
  13. Android 开发环境搭建实验报告
  14. 云上PDF怎么删除页眉页脚_用了这么久的Word,居然不知道怎样去除页眉页脚?...
  15. For菜鸟文章:PE文件格式,qduwg翻译
  16. U盘插入提示使用驱动器光盘之前需要格式化
  17. 给一个大表增加一个字段,带默认值
  18. 如何利用TFTP协议发动DDoS放大攻击
  19. C++学习(二六六)LINK_DIRECTORIES
  20. wps流程图导出不清楚_一份清晰的“流程图”,无需专业软件,一个简单Word轻松搞定...

热门文章

  1. 国外游戏开发商吐槽:开发VR游戏付账单的钱都赚不到
  2. 基于Java Bean Validation对Request参数进行校验的设计思路
  3. memcached运行情况监测
  4. 【HDOJ】2809 God of War
  5. lucene索引并搜索mysql数据库[转]
  6. RSF 分布式服务框架-传输协议层设计
  7. 使用sersync实现多台服务器实时同步文件
  8. Python天天美味(17) - open读写文件
  9. Linux开放端口、关闭防火墙操作
  10. L2-040 哲哲打游戏 (25 分)-PAT 团体程序设计天梯赛 GPLT