vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

安装依赖不成功

Open MrDavv opened this issue 1 year ago • 2 comments

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • vue-element-admin version:

MrDavv avatar Sep 04 '22 10:09 MrDavv

1.克隆以后 删除package.json中tui-editor:1.3.3

2.\src\components\MarkdownEditor\index.vue文件,将全部import换成下面几个 import 'codemirror/lib/codemirror.css' import '@toast-ui/editor/dist/toastui-editor.css' import Editor from '@toast-ui/vue-editor' import defaultOptions from './default-options' 并将该文件下的getValue和setValue分别换成getMarkdown和setMarkdown

3.单独安装tui-editor npm install --save @toast-ui/vue-editor

4.安装其他依赖 npm i

5.跑起来 npm run dev

Agiao-bot avatar Sep 04 '22 19:09 Agiao-bot

1.克隆以后 删除package.json中tui-editor:1.3.3

2.\src\components\MarkdownEditor\index.vue文件,将全部import换成下面几个 import 'codemirror/lib/codemirror.css' import '@toast-ui/editor/dist/toastui-editor.css' import Editor from '@toast-ui/vue-editor' import defaultOptions from './default-options' 并将该文件下的getValue和setValue分别换成getMarkdown和setMarkdown

3.单独安装tui-editor npm install --save @toast-ui/vue-editor

4.安装其他依赖 npm i

5.跑起来 npm run dev

太棒了吧,只不过不清楚这是为什么

lmx-pqs avatar Sep 09 '22 06:09 lmx-pqs

我也想知道这是为什么

Pozhan-js avatar Oct 13 '22 03:10 Pozhan-js

我也想知道这是为什么 因为原来的富文本编辑器改名字了,你用npm安装命令它找不到依赖所以会报错。按照题主的方法改成最新的名称就可以安装依赖了。

1443104868 avatar Oct 26 '22 01:10 1443104868

因为作者将他改名了 好比你用固定连接去访问资源 资源改名后访问目标不存在就会报错

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月26日(星期三) 上午9:06 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PanJiaChen/vue-element-admin] 安装依赖不成功 (Issue #4063)

我也想知道这是为什么 因为原来的富文本编辑器改名字了,你用npm安装命令它找不到依赖所以会报错。按照题主的方法改成最新的名称就可以安装依赖了。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Agiao-bot avatar Oct 26 '22 01:10 Agiao-bot