vue-element-admin npm install 失败解决
git地址:https://github.com/PanJiaChen/vue-element-admin/tree/master
原因:
tui-editor插件改名导致
解决方法:
第一步:
package.json文件
"tui-editor": "1.3.3",
修改为
"@toast-ui/editor": "^3.1.3",
第二步:
src/components/MarkdownEditor/index.vue文件
// deps for editor
import 'codemirror/lib/codemirror.css' // codemirror
import 'tui-editor/dist/tui-editor.css' // editor ui
import 'tui-editor/dist/tui-editor-contents.css' // editor content
import Editor from 'tui-editor'
import defaultOptions from './default-options'
改为
// deps for editor
import 'codemirror/lib/codemirror.css'
import '@toast-ui/editor/dist/toastui-editor.css'
import Editor from '@toast-ui/editor'
import defaultOptions from './default-options'
文件中的getValue换成getMarkdown ;setValue换成setMarkdown
然后我们重新npm i 就可以了