重装了系统,再次安装了nodejs,就出现了 :

found 6 vulnerabilities (3 moderate, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

忽略后,用 npm run build,报错,用 npm audit fix后,还是报错,后来想到了,可能是nodejs的环境没配置好,以下是怎么配置环境的:

1. nodejs,我安装在 H:\nodejs, 在这个文件夹下两个文件夹【node_global】及【node_cache】

2. cmd 命令窗口,依次运行以下命令

npm config set prefix "H:\nodejs\node_global"
  npm config set cache "H:\nodejs\node_cache"

3. 在操作系统的环境变量里,

系统变量:  新建 NODE_PATH,输入【H:\nodejs\node_global\node_modules】

用户变量的path,找到 "C:\Users\Administrator\AppData\Roaming\npm" ,修改成: H:\nodejs\node_global

4. 重启电脑

5. npm是国外的地址,下载慢,为了提速,安装淘宝的cnpm镜像,用cnpm install  来代替npm安装 
    $ npm install -g cnpm --registry=https://registry.npm.taobao.org

6. 删除项目文件夹下的node_modules,

在cmd命令窗口,用 cnpm i 指令重新下载,

再 npm  run build  就可以编译成功了

found 6 vulnerabilities (3 moderate, 3 high) run `npm audit fix` to fix them, or `npm audit` for d相关推荐

  1. 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, ...

  2. 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` ...

  3. 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 ...

  4. 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 ...

  5. npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found

    之前,在npm下载包的时候出现一个错误: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run c ...

  6. 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

  7. vue npm run serve/dev命令后台运行:nohup npm run serve >web.log 2>1 exit

    nohup npm run serve >web.log 2>&1 & exit

  8. 2022.12.27号笔记 解决 npm run serve 项目起不来问题 解决 npm run serve 项目起不来问题

    1 解决 npm run serve 项目起不来问题 按快捷键 ctrl+` 即可打开终端子窗口,如下图所示 2 svn拉下的代码 是压缩好的如何处理 3.前端 项目如何在文件夹 中直接打开vscod ...

  9. npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

    从上图看,缺少一个package.json文件 使用 npm init 进行创建 执行上图中的命令 然后再次检测 再次使用命令行:npm install --save-dev babel-preset ...

最新文章

  1. 朝着理想坚实迈进_坚实原则:单一责任原则
  2. springcloud 创建子父项目_idea搭建springCloud----搭建父子项目(二)
  3. 开放下载!从RCNN到SSD,这应该是最全的一份目标检测算法盘点
  4. 操作系统 非连续分配_操作系统中的连续和非连续内存分配
  5. 如何关闭window10自动更新
  6. 我最开始学dancing link的HTML5的时候
  7. 15款最佳的 jQuery 分步引导插件
  8. Ubuntu 16.04 安装QQ, TIM
  9. linux ubuntu 安装 matlab 2010 及破解 详细图解
  10. 关于quartus ii 破解失败的问题
  11. vmware workstations 共享虚拟机 failed to connect 903
  12. layer的iframe用法整理
  13. 如何提高BT的下载速度?
  14. ios标准时间转为北京时间
  15. 智能合约实现简单投票系统
  16. 哪种耳机危害最小?推荐这种骨传导耳机
  17. activemq、rabbitmq、kafka原理和比较
  18. AFNetworking的使用
  19. kali永久提root权限
  20. Network problems last Friday

热门文章

  1. Unity-协程详解
  2. use strict 使用方法-简单说
  3. Linux之 Sqlite 修复 The database disk image is malformed
  4. Humor Me - RFC 1149 - 一首打油小诗
  5. Photoshop自动导出各尺寸Android和Iphone图标,支持新版Android Studio
  6. fMRI研究 | 社交情境下的混合情绪
  7. Eclipse中Egit冲突解决
  8. cocos 扇形进度条
  9. mapboxgl 和高德api获取周边场所及交通信息
  10. linux-文件授权命令chmod