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

    http://eux.baidu.com/blog/fe/npm%20aduit%E4%BA%8C%E4%B8%89%E4%BA%8B

    # 扫描项目漏洞把不安全的依赖项自动更新到兼容性版本
    npm audit fix
    
    # 在不修改 node_modules 的情况下执行 audit fix,仍然会更改 pkglock
    npm audit fix --package-lock-only
    
    # 跳过更新 devDependencies
    npm audit fix --only=prod
    
    # 强制执行 audit fix 安装最新的依赖项(toplevel)
    npm audit fix --force
    
    # 单纯的获取 audit fix 会做的事,并以 json 格式输出。
    npm audit fix --dry-run --json
    
    # 获取详情
    npm audit
    
    # 以 JSON 格式打印报告
    npm audit --json
    收藏文章数量从多到少与“把书读薄”是一个道理
  • 相关阅读:
    1. jQuery中的DOM操作
    jQuery查找节点(选择器)
    机器学习基础
    CRF
    NP
    LP
    kernel
    SVM
    凸优化和对偶
    语音识别 -- 概述
  • 原文地址:https://www.cnblogs.com/use-D/p/10637906.html
Copyright © 2011-2022 走看看