news 2026/5/28 10:34:17

前端智能化场景解决方案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/5/27 13:38:20

ER-Save-Editor虚拟现实:从二维表格到三维空间的全新存档编辑体验

你是否曾在《艾尔登法环》中为调整角色属性而反复打开关闭菜单?是否在装备搭配时因界面限制而难以直观对比不同配置?ER-Save-Editor作为支持PC和PlayStation平台的存档编辑工具,正在通过VR技术彻底改变这一现状。让我们一起来探索从二维平面到…

作者头像 李华
网站建设 2026/5/26 6:42:16

如何快速部署企业级开源即时通讯服务器:OpenIM Server终极指南

如何快速部署企业级开源即时通讯服务器:OpenIM Server终极指南 【免费下载链接】open-im-server IM Chat 项目地址: https://gitcode.com/gh_mirrors/op/open-im-server OpenIM Server是一款专为企业级应用设计的开源即时通讯解决方案,采用Go语言…

作者头像 李华
网站建设 2026/5/27 17:34:32

如何高效实现Reddit视频批量自动化生成:从手动操作到智能生产

如何高效实现Reddit视频批量自动化生成:从手动操作到智能生产 【免费下载链接】RedditVideoMakerBot Create Reddit Videos with just✨ one command ✨ 项目地址: https://gitcode.com/GitHub_Trending/re/RedditVideoMakerBot 面对内容创作领域日益增长的需…

作者头像 李华
网站建设 2026/5/26 3:06:04

告别臃肿:crypto-js模块化引入的精准瘦身指南

在追求极致性能的前端开发领域,crypto-js的完整引入已成为项目体积的隐形负担。本文将为你揭示如何通过模块化策略实现精准瘦身,让加密功能不再成为性能瓶颈。 【免费下载链接】crypto-js 项目地址: https://gitcode.com/gh_mirrors/cry/crypto-js …

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

电力配网硬件研发:5大核心技能实战解析

目录 一、电力配网设备研发岗位全景 1.1 岗位分类与核心职责 二、核心技能模块 1:电力系统基础与电气原理(入行门槛) 2.1 必备知识点 2.2 实战案例:10kV 配电网典型设备选型与保护配置 三、核心技能模块 2:硬件电…

作者头像 李华