news 2026/6/9 2:42:16

前端智能化场景解决方案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/9 6:27:18

Azure量子计算认证难吗?90%考生忽略的5大关键考点曝光

第一章:MCP Azure 量子开发认证考点解析Azure 量子开发认证(Microsoft Certified: Azure Quantum Developer)面向掌握量子计算原理并能使用 Azure Quantum 服务构建和运行量子算法的专业开发者。该认证重点考察候选人在量子编程、量子电路设计…

作者头像 李华
网站建设 2026/6/9 15:12:21

在windows平台搭建一个mini版本的k8s集群

前置要求: 1. 安装wsl2和docker-desktop 这边安装步骤之类的网上都有,最后要达成的效果就是二者都安装ok,同时要用wsl2起一台Linux虚机即可2.安装kubectlcurl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/s…

作者头像 李华
网站建设 2026/6/2 1:39:21

Bruno组件库:企业级Flutter UI开发的终极实践指南

Bruno组件库:企业级Flutter UI开发的终极实践指南 【免费下载链接】bruno An enterprise-class package of Flutter components for mobile applications. ( Bruno 是基于一整套设计体系的 Flutter 组件库。) 项目地址: https://gitcode.com/gh_mirrors/bru/bruno…

作者头像 李华
网站建设 2026/6/1 12:01:46

Wan2.2-T2V-A14B如何防止生成歧视性或偏见内容?

Wan2.2-T2V-A14B如何防止生成歧视性或偏见内容? 你有没有想过,一个AI生成的广告视频里,为什么总是“白人男性当CEO”、“亚裔女性在厨房做菜”?🤔 这并不是巧合——而是训练数据中潜藏的社会偏见被模型“学”了进去。更…

作者头像 李华
网站建设 2026/6/8 21:35:52

基于Wan2.2-T2V-A14B构建企业级视频SaaS平台的技术路径

基于Wan2.2-T2V-A14B构建企业级视频SaaS平台的技术路径 在短视频主导内容消费的今天,品牌每小时都在“错过一个爆款”——不是因为创意枯竭,而是传统视频生产像搭积木:脚本、拍摄、剪辑、调色……动辄几天甚至几周。但当AI开始“写”视频&…

作者头像 李华