易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 91|回复: 0
收起左侧

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

[复制链接]
发表于 2025-6-4 10:07:33 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
ERROR  Failed to compile with 1 error                                                                                                                                                  10:02:48 ├F10: AM┤3 r) [  s5 ]$ i* ~; c8 a

& m& B, }! H% Z& qThis dependency was not found:
  k) T6 E4 H( R3 _) u& |' p* l6 P4 H% O1 Z* i4 B8 R
* core-js/core/array in ./src/main.js/ D  L# X+ w1 i. J6 \4 n
! R# U, F, L  r$ P, ~
To install it, you can run: npm install --save core-js/core/array9 ^/ C9 _; \+ b9 E

3 a& ^) E* B0 i2 k
) p$ g5 X, u4 F- Z; \) x) b& h9 T8 Z' Q. h: `
解决办法:
: }9 \6 d  w9 V# ^& ]2 q# c
% h8 {% a9 f2 I+ @  d% i& M' m) BPS C:\Users\admin\Desktop\deskdirectory\trip-mobile> npm install core-js) h& R0 ]6 l* L6 D
. p$ I0 Y! W2 y* z& ~! R7 d
> core-js@3.42.0 postinstall C:\Users\admin\Desktop\deskdirectory\trip-mobile\node_modules\core-js4 t  _  i- n1 |5 N: Q7 a" @/ y
> node -e "try{require('./postinstall')}catch(e){}"
. b0 m% C1 F0 L! k0 b+ x
: M! ^5 g" {: p! H  q" LThank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!& z! p' A) W% Z5 b

' W. S+ c2 ~0 v/ S5 j3 cThe project needs your help! Please consider supporting core-js:4 w8 N) t8 ?; P8 y* o3 T5 O  `% C
> https://opencollective.com/core-js / k  K! m5 E6 E5 P* ~. w9 D3 O: ^
> https://patreon.com/zloirock + B0 Q9 D3 w' V9 T8 E2 m
> https://boosty.to/zloirock . B* O% ~3 @: x/ w, n/ Y
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
/ w; t: k/ ]& f& f8 c! j$ k8 _- S3 B
I highly recommend reading this: https://github.com/zloirock/core ... 14-so-whats-next.md 6 [9 }: z& |& c( q5 x
* k+ G5 n4 Q: H9 u' R$ A
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules\fsevents):- D. ]4 M& V4 ]( {
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})6 G8 T3 V* U; ~6 S
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):6 n: O( c- D( L5 e* g0 ^" X6 a, r6 ]
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
3 P7 h7 Y$ N+ O2 o8 m2 F3 Snpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
1 B2 S2 ~" B  |6 ~) w; }" Enpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
) c, k$ z& q- @$ V3 X, L9 m% D# E' }  ^. `( a: z
+ core-js@3.42.08 i8 [% t& ~9 @9 `: k
updated 1 package and audited 1553 packages in 32.554s
: _' x" |9 {3 J$ q% _$ ~
' k/ m) q5 q* O, E& f4 P: Z162 packages are looking for funding6 p  i4 F+ M. p) Y1 Z" x; V4 |
  run `npm fund` for details; y( }/ J- L1 `# F2 F4 Z  ]
# `! ]4 Y2 }. g3 {6 D8 A- M* a
found 108 vulnerabilities (3 low, 88 moderate, 15 high, 2 critical)* Z; l/ n6 A. p# ^/ K; |* ?) A& v
  run `npm audit fix` to fix them, or `npm audit` for details
( L1 j. K- f! v* A
4 |5 i1 E' n. [% B! }3 `$ v* r
# A6 P3 D5 W& s1 P3 O9 D
  W# o, k$ e* `* S$ W  J. d
, I4 C; s4 u: ?% J
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:35 , Processed in 0.050668 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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