news 2026/6/26 9:49:34

前端智能化场景解决方案UI库matechat,如何安装环境项目

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
前端智能化场景解决方案UI库matechat,如何安装环境项目

MateChat / Angular

前端智能化场景解决方案UI库,轻松构建你的AI应用。已服务于华为内部多个应用智能化改造,并助力CodeArts、InsCode AI IDE等智能化助手搭建。

特性

  • 面向智能化场景组件库
  • 开箱即用
  • 多场景匹配
  • 多主题适配

🖥️ 快速开始

1. 安装

如果你还没有新建项目,可以使用 Angular CLI 首先初始化一个angular项目:

$ npm install-g @angular/cli@cli@20.3$ ngnewmatechat-demo $ npm i @matechat/ng




错误解决:

npm error codeERESOLVEnpm errorERESOLVEunable to resolve dependency tree npm error npm error While resolving:matechat-demo@0.0.0npm error Found:@angular/common@21.0.4npm error node_modules/@angular/common npm error @angular/common@"^21.0.0"fromthe root project npm error npm error Could not resolve dependency:npm error peer @angular/common@"^20.3.0"from@matechat/ng@20.1.0npm error node_modules/@matechat/ng npm error @matechat/ng@"*"fromthe root project npm error npm error Fix the upstream dependency conflict,or retry npm errorthiscommandwith--force or--legacy-peer-deps npm error to accept anincorrect(and potentially broken)dependency resolution.npm error npm error npm error For a full report see:

根据错误信息,npm ERR! ERESOLVE unable to resolve dependency tree 是由于依赖冲突导致的。具体来说,项目中 @angular/common 版本为 21.0.4,而 @matechat/ng 需要 @angular/common 的版本为 20.3.0,存在版本不兼容问题。以下是解决方案:

手动降级 Angular 版本,修改 package.json,将 @angular/common 版本降级到 20.3.0:

"dependencies":{"@angular/common":"20.3.0"}

但是手动降级后,其它的都是高版本报错:

npm error codeERESOLVEnpm errorERESOLVEunable to resolve dependency tree npm error npm error While resolving:matechat-demo@0.0.0npm error Found:@angular/core@21.0.4npm error node_modules/@angular/core npm error @angular/core@"^21.0.0"fromthe root project npm error npm error Could not resolve dependency:npm error peer @angular/core@"20.3.0"from@angular/common@20.3.0npm error node_modules/@angular/common npm error @angular/common@"20.3.0"fromthe root project npm error npm error Fix the upstream dependency conflict,or retry npm errorthiscommandwith--force or--legacy-peer-deps npm error to accept anincorrect(and potentially broken)dependency resolution.npm error npm error npm error For a full report see:


解决方案:

$ npm install-g @angular/laster 更换为 $ npm install-g @angular/cli@cli@20.3

MateChat/Angular是一个面向智能化场景的UI组件库,已成功应用于华为内部多个AI应用的改造。其特性包括开箱即用、多场景匹配和多主题适配。安装时若出现npm依赖冲突(如Angular版本不兼容),可通过降级到@angular/cli@20.3版本解决。

具体步骤为:

  • 1)使用指定版本初始化项目;
  • 2)安装@matechat/ng组件库。

该方案有效解决了@angular/common与@matechat/ng之间的版本冲突问题。

MateChat:https://gitcode.com/DevCloudFE/MateChat
MateChat官网:https://matechat.gitcode.com
DevUI官网:https://devui.design/home

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/26 6:03:00

STM32 CubeIDE(1.18.0) LED闪烁

在STM32微控制器开发中,LED闪烁是一个基础实验,帮助理解GPIO(通用输入输出)操作和定时控制。使用STM32 CubeIDE可以轻松配置硬件和编写代码来实现LED闪烁。 创建新项目 打开STM32 CubeIDE。选择“File” > “New” > “ST…

作者头像 李华
网站建设 2026/6/26 8:17:24

AI动态场景生成:重塑影视创作的技术革命

AI动态场景生成:重塑影视创作的技术革命 【免费下载链接】WanVideo_comfy 项目地址: https://ai.gitcode.com/hf_mirrors/Kijai/WanVideo_comfy 想象一下,你手持普通摄像机拍摄了一段街头漫步视频,却能在几分钟内将其转换为科幻都市的…

作者头像 李华
网站建设 2026/6/26 1:28:20

SG-PNh750-MOD-221(Profinet 转 Modbus RTU 网关)特点与功能介绍

一、核心定位与工作模式SG-PNh750-MOD-221 是工业级协议转换网关,核心功能是实现 Modbus RTU 设备与 Profinet 网络的互联互通。设备在 Profinet 侧作为 IO 从站,对接西门子 S7-1200/1500 等 PLC;在 Modbus 侧支持主站或从站模式,…

作者头像 李华
网站建设 2026/6/25 20:44:18

手把手教你用VSCode远程调试量子程序,10分钟快速上手

第一章:手把手教你用VSCode远程调试量子程序,10分钟快速上手 在现代量子计算开发中,使用本地环境直接运行和调试量子程序存在资源限制。结合 VSCode 的远程开发能力与主流量子计算框架(如 Qiskit),开发者可…

作者头像 李华