找回密码
 注册
查看: 99|回复: 0

解决Vue 报错ERROR Failed to compile with 1 error 10:02:48 ├F10: AM┤This dependency

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-6-4 10:07:33 | 显示全部楼层 |阅读模式
ERROR  Failed to compile with 1 error                                                                                                                                                  10:02:48 ├F10: AM┤9 C6 ~' D$ Q( J0 Z0 w

$ b/ @2 ]( B7 |This dependency was not found:  `+ s6 s' l! a9 n- f* W. I* j

. d& e" O/ U+ W. n) Z) e* core-js/core/array in ./src/main.js
" Q3 G2 k6 ]$ B; F/ }5 _5 v$ P3 H1 B0 o% k! O6 C8 |/ E
To install it, you can run: npm install --save core-js/core/array
" t: {6 a6 U1 ]
+ l5 ^& t2 W7 n7 [! z$ k7 b' V0 \9 }' R) `
1 a( d3 w0 b" u& q* D
解决办法:
) q0 Z# e& D& }% F* x) d5 p- {' z: }9 F/ z
PS C:\Users\admin\Desktop\deskdirectory\trip-mobile> npm install core-js% \+ T2 x: u7 `$ S' O  j: n. }* K4 g

% P9 j4 T7 {- @/ g> core-js@3.42.0 postinstall C:\Users\admin\Desktop\deskdirectory\trip-mobile\node_modules\core-js
0 W3 C# ~: {2 e5 g9 h# Y9 u> node -e "try{require('./postinstall')}catch(e){}"
$ a. e$ o$ F; U, M! j/ U+ t' |! U* t9 m7 K0 \, J/ R
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!! K& c' h, f" U  ~* a
+ w$ ^1 D  _; R2 [- v4 X$ S- i
The project needs your help! Please consider supporting core-js:" L5 T5 R; h' ?) d+ i  m
> https://opencollective.com/core-js
; V4 L0 s4 Q, C0 B8 A4 R' b> https://patreon.com/zloirock   Q8 l1 x9 M0 D5 i
> https://boosty.to/zloirock $ t  M& j/ c0 @# c- _" r- z# R$ z
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
3 V% U% H( q  N
1 Z' v6 i" ~+ Y: n% q+ gI highly recommend reading this: https://github.com/zloirock/core ... 14-so-whats-next.md
+ p+ U4 x9 U; X4 f
! t- D9 o% j7 [. I0 f, cnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules\fsevents):. e7 v0 a$ t) F+ N
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})2 \4 o6 i* s4 r5 ^& M5 m! c- P
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):' |7 F1 ?/ N* ?. T* b3 R
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}): g: W3 L, d! |/ h+ b
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
) d6 i& [+ I% B9 t6 x# xnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})" U9 D* Q) P+ e8 C

  v1 q: D) x7 C4 C+ core-js@3.42.03 e( c( J0 Q( q8 Y+ e
updated 1 package and audited 1553 packages in 32.554s
& U" R0 ]( w3 P* p: o: [9 h4 @3 m6 c% L6 B
162 packages are looking for funding4 r6 D9 I+ y# I3 f& n" I
  run `npm fund` for details; N* `3 \$ O$ `9 K3 H; B, A
+ i5 Z2 |' x6 Z1 R
found 108 vulnerabilities (3 low, 88 moderate, 15 high, 2 critical); o6 r4 s8 U7 `- e3 X+ G; @6 i+ c
  run `npm audit fix` to fix them, or `npm audit` for details
8 `% Z* C" ]; Y9 U
* t! ?+ u9 n+ S: z: y
4 w1 I) k& s' W; S1 g8 t  Q+ A. B0 s" u9 Q
( ~5 O/ B7 H$ F3 W' q& D
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:25 , Processed in 0.019313 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表