diff --git a/README.md b/README.md index 08cd68e..c53411d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,16 @@ ### 方式一:npm 安装(推荐) +> 包托管于 MetonaTeam 自建 Gitea 私有 npm 源(`git.metona.cn`),不在 npm 官方源发布,安装时需指定 registry。 + ```bash +# 直接指定私有源安装 +npm install @metona-team/metona-editor --registry=https://git.metona.cn/api/packages/MetonaTeam/npm/ + +# 或配置项目 .npmrc(推荐,一次配置长期生效) +# .npmrc +@metona-team:registry=https://git.metona.cn/api/packages/MetonaTeam/npm/ + npm install @metona-team/metona-editor ``` @@ -78,15 +87,12 @@ const editor = MeEditor.create('#editor', { mode: 'split' }); ### 方式二:CDN 引入 ```html - - - - - - - + + + +