zoukankan      html  css  js  c++  java
  • 【记录】vue构建项目npm install错误run `npm audit fix` to fix them, or `npm audit` for details

    今天构建vue项目执行npm install初始化后报错

    run `npm audit fix` to fix them, or `npm audit` for details

    出现这问题控制台会有一系列提示,让你输入对应命令,所以我进行了如下命令操作:

    1:首先安装模块依赖:

    npm install
    

      

     2:如果出现以上提示,继续输入:

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

    npm audit fix

     3:如果出现以上提示,继续输入

    npm audit fix –force
    

      

    4:如果出现以上提示,继续输入

    npm audit
    

      

     5:至此项目配置完毕,运行工程

    # 构建测试环境
    npm run build:stage
    #启动
    npm run dev
    

      

  • 相关阅读:
    反向映射和写时复制
    内存分析的好blog
    minicom使用
    tee的妙用
    网络带宽
    mem analyse
    linux 应用层常用API/命令
    ubuntu 库依赖问题
    Python基础学习笔记(一:hello world)
    第7章 取消与关闭
  • 原文地址:https://www.cnblogs.com/achengmu/p/14202925.html
Copyright © 2011-2022 走看看