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>
相关推荐
腾讯TNTWeb前端团队11 分钟前
helux v5 发布了,像pinia一样优雅地管理你的react状态吧
前端·javascript·react.js
范文杰4 小时前
AI 时代如何更高效开发前端组件?21st.dev 给了一种答案
前端·ai编程
拉不动的猪4 小时前
刷刷题50(常见的js数据通信与渲染问题)
前端·javascript·面试
拉不动的猪4 小时前
JS多线程Webworks中的几种实战场景演示
前端·javascript·面试
FreeCultureBoy5 小时前
macOS 命令行 原生挂载 webdav 方法
前端
uhakadotcom5 小时前
Astro 框架:快速构建内容驱动型网站的利器
前端·javascript·面试
uhakadotcom5 小时前
了解Nest.js和Next.js:如何选择合适的框架
前端·javascript·面试
uhakadotcom5 小时前
React与Next.js:基础知识及应用场景
前端·面试·github
uhakadotcom5 小时前
Remix 框架:性能与易用性的完美结合
前端·javascript·面试
uhakadotcom6 小时前
Node.js 包管理器:npm vs pnpm
前端·javascript·面试