【VUE】npm install报错“found * vulnerabilities( * high), run npm audit fix, or npm audit”相关问题的解决 您所在的位置:网站首页 职业拳击体重级别是多少 【VUE】npm install报错“found * vulnerabilities( * high), run npm audit fix, or npm audit”相关问题的解决

【VUE】npm install报错“found * vulnerabilities( * high), run npm audit fix, or npm audit”相关问题的解决

2023-08-29 21:02| 来源: 网络整理| 查看: 265

前言

一个vue2的项目,从mac上传到gitee,然后windows clone之后npm install报错。

原因

核心问题是node版本问题,windows11下载了node v16,然后版本过高导致各种无法resolve。需要降级为node v14版本。

解决

控制面板,卸载,node 在这里插入图片描述

node官网,下载老版本 在这里插入图片描述

关闭cmd,关闭webstorm(项目),然后再重新打开,node -v查看版本,如果是14那就ok

npm install还是会有一些少量版本高或低的问题,但是node_modules成功安装,npm run serve也可以成功了

其他

问题的核心是node的版本问题,但是报错会有各种各样的 比如:Error: Cannot find module '@vue/cli-plugin-eslint'报错 比如:Error: Cannot find module '@vue/cli-plugin-babel'报错 比如:Error: Cannot find module '@vue/cli-plugin-babel/preset'报错 比如:node-sass报错 等等 但只要node版本回退,问题就全都解决了,根本不用去管这些报错,我花了好多时间尝试去解决这些问题,事实证明并不能让项目跑起来



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有