由于版本兼容问题,经多次安装错误,总结安装成功步骤
//根据官方文档,使用镜像cnpm,安装失败的话建议换个网络环境
cnpm install @wangeditor/editor-for-vue@next --save
官网链接:https://www.wangeditor.com/v5/installation.html#npm
运行代码
报错:
[ERROR] Could not resolve "@wangeditor/editor"
安装
cnpm install @wangeditor/editor --save
运行成功!