vue3项目导入异常Error: @vitejs/PLUGIN-vue requires vue (>=3.2.13)

vue3项目导入异常

1、异常提示如下:

bash 复制代码
failed TO LOAD config FROM D:\ws-projects\vite.co
nfig.js
error WHEN STARTING dev SERVER:
Error: @vitejs/PLUGIN-vue requires vue (>=3.2.13) OR @vue/compiler-sfc TO be pre
sent IN the dependency tree.
  

2、解决办法:

具体命令如下:

npm install [email protected] --save-dev

一般都是开发者捐赠支持的提示,打开一个github的链接之后,会显示需要打赏捐赠的信息,此时如果不想npm install --no-fund捐赠或者跳过这个提示的话,直接在后面加--NO-fund即可,

解决办法:

npm install --no-fund

bash 复制代码
npm notice created a lockfile as package-lock.json. You should commit this file

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\c
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\w
tchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64
})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\w
bpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64
})
npm WARN [email protected] requires a peer of eslint@>=1.6.0 <7.0.0 but none
s installed. You must install peer dependencies yourself.

added 1603 packages from 951 contributors in 90.575s

137 packages are looking for funding
  run `npm fund` for details


D:\ws-projects\RuoYi-Vue-master\ruoyi-ui>npm fund
[email protected]
+-- https://github.com/chalk/chalk?sponsor=1
| `-- [email protected]
+-- https://opencollective.com/webpack
| `-- [email protected], [email protected], [email protected], sch
[email protected], [email protected], [email protected], css-loa
[email protected], [email protected]
+-- https://opencollective.com/core-js
| `-- [email protected], [email protected]
+-- https://opencollective.com/eslint
| `-- [email protected]
+-- https://opencollective.com/lint-staged
| `-- [email protected]
+-- https://github.com/sponsors/sindresorhus
| `-- [email protected], [email protected], [email protected], [email protected], d
[email protected], [email protected], [email protected], [email protected], [email protected]
2, [email protected], [email protected], [email protected], [email protected], get-stream@
.2.0, [email protected], [email protected], [email protected], [email protected], strip-j
[email protected], [email protected], [email protected], is-unicode-supported@
.1.0, [email protected]
+-- https://opencollective.com/babel
| `-- @babel/[email protected]
+-- https://opencollective.com/browserslist
| `-- [email protected], [email protected], update-browserslist-db@1
0.11
+-- https://tidelift.com/funding/github/npm/browserslist
| `-- [email protected], [email protected]
+-- https://github.com/sponsors/ai
| `-- [email protected], [email protected], update-browserslist-db@1
0.11
+-- https://tidelift.com/funding/github/npm/caniuse-lite
| `-- [email protected]
+-- https://github.com/sponsors/ljharb
| `-- [email protected], [email protected], supports-preserve-symlinks-flag@1.
.0, [email protected], [email protected], [email protected], [email protected], call-bind
1.0.2, [email protected], [email protected], [email protected], has-symbols
1.0.3, [email protected], [email protected], [email protected], es-a
[email protected], [email protected], [email protected],
[email protected], [email protected], es-to-primitive
1.2.1, [email protected], [email protected], globalthis@
.0.3, [email protected], [email protected], [email protected], is-negative-zero@2.
.2, [email protected], [email protected], [email protected], is-typed-arr
[email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], str
[email protected], [email protected], typed-array-byte-
[email protected], [email protected], [email protected], unbox-pri
[email protected], [email protected], [email protected], is-date-object@1.
.5, [email protected], [email protected], [email protected], which-boxed
[email protected], [email protected], [email protected], [email protected]
7, [email protected], [email protected], [email protected]
.0, [email protected], [email protected], [email protected], [email protected]
+-- https://github.com/sponsors/feross
| `-- [email protected], [email protected], [email protected], [email protected]
+-- https://www.patreon.com/feross
| `-- [email protected], [email protected], [email protected], [email protected]
+-- https://feross.org/support
| `-- [email protected], [email protected], [email protected], [email protected]
+-- https://github.com/sponsors/epoberezkin
| `-- [email protected]
+-- https://github.com/avajs/find-cache-dir?sponsor=1
| `-- [email protected]
+-- https://github.com/sponsors/isaacs
| `-- [email protected], [email protected]
+-- https://paulmillr.com/funding/
| `-- [email protected], [email protected]
+-- https://github.com/sponsors/jonschlinkert
| `-- [email protected]
+-- https://tidelift.com/funding/github/npm/autoprefixer
| `-- [email protected]
+-- https://opencollective.com/postcss/
| `-- [email protected], [email protected]
+-- https://github.com/sponsors/wooorm
| `-- [email protected]
+-- https://github.com/sponsors/fb55
| `-- [email protected], [email protected], [email protected], [email protected]
 [email protected]
+-- https://github.com/fb55/entities?sponsor=1
| `-- [email protected]
+-- https://github.com/chalk/ansi-styles?sponsor=1
| `-- [email protected]
+-- https://github.com/prettier/prettier?sponsor=1
| `-- [email protected]
+-- https://github.com/chalk/wrap-ansi?sponsor=1
| `-- [email protected]
+-- https://github.com/fb55/htmlparser2?sponsor=1
| `-- [email protected]
+-- https://github.com/fb55/domhandler?sponsor=1
| `-- [email protected]
+-- https://github.com/fb55/domutils?sponsor=1
| `-- [email protected]
+-- https://github.com/cheeriojs/dom-serializer?sponsor=1
| `-- [email protected]
+-- https://github.com/fb55/nth-check?sponsor=1
| `-- [email protected]
+-- https://tidelift.com/funding/github/npm/loglevel
| `-- [email protected]
+-- https://tidelift.com/funding/github/npm/sockjs-client
| `-- [email protected]
+-- https://github.com/sponsors/RubenVerborgh
| `-- [email protected]
+-- https://github.com/sponsors/mysticatea
| `-- [email protected], [email protected], [email protected]
+-- https://github.com/sindresorhus/execa?sponsor=1
| `-- [email protected]
`-- https://github.com/chalk/slice-ansi?sponsor=1
  `-- [email protected]
D:\ws-projects\RuoYi-Vue-master\ruoyi-ui>npm install --no-fund
npm WARN [email protected] requires a peer of eslint@>=1.6.0 <7.0.0 but none i
s installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\wa
tchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\we
bpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})

up to date in 10.897s

D:\ws-projects\RuoYi-Vue-master\ruoyi-ui>
相关推荐
Brilliant Nemo2 分钟前
Vue2项目中使用videojs播放mp4视频
开发语言·前端·javascript
酷爱码27 分钟前
Linux实现临时RAM登录的方法汇总
linux·前端·javascript
LuckyLay29 分钟前
Vue百日学习计划Day16-18天详细计划-Gemini版
前端·vue.js·学习
想要飞翔的pig1 小时前
uniapp+vue3页面滚动加载数据
前端·vue.js·uni-app
HarryHY1 小时前
git提交库常用词
前端
SoraLuna1 小时前
「Mac畅玩AIGC与多模态41」开发篇36 - 用 ArkTS 构建聚合搜索前端页面
前端·macos·aigc
Wannaer1 小时前
从 Vue3 回望 Vue2:性能优化内建化——从黑盒优化到可控编译
javascript·vue.js·性能优化
霸王蟹1 小时前
React Fiber 架构深度解析:时间切片与性能优化的核心引擎
前端·笔记·react.js·性能优化·架构·前端框架
benben0441 小时前
Unity3D仿星露谷物语开发44之收集农作物
前端·游戏·unity·游戏引擎
会功夫的李白1 小时前
uniapp自动构建pages.json的vite插件
前端·uni-app·vite