zoukankan      html  css  js  c++  java
  • npm audit fix

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

    added 253 packages from 162 contributors and audited 1117 packages in 42.157s
    
    found 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 packages
    
    1 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,  检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,而不必再自己进行跟踪和修复。

  • 相关阅读:
    点击按钮,显示隐藏内容,点击隐藏内容,内容隐藏
    点击按钮,显示隐藏内容,再次点击内容,内容隐藏
    padding值
    文字竖行显示并且逐字出现
    鼠标放上去图片平滑变大效果
    animation
    transform
    Transition过度效果
    git分支操作
    超出文本用省略号代替
  • 原文地址:https://www.cnblogs.com/edensyd/p/9604760.html
Copyright © 2011-2022 走看看