Open doufu101 opened 1 year ago
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
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
谢谢
方法可行
请看:https://gitee.com/wubie/vue2-element-admin-simplify 我这边解决了全部的依赖问题,以及和新版NodeJS不兼容的问题,你可以Clone我的仓库,然后解压“[backup]node_modules.zip”替换node_modules文件夹
npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git npm ERR! npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\szp\AppData\Roaming\npm-cache_logs\2022-09-25T06_17_57_281Z-debug.log