前端

vue-trix-editor install failed

npm install @dymantic/vue-trix-editor
npm ERR! code ETARGET
npm ERR! notarget No matching version found for wrap-ansi-cjs@7.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of '@isaacs/cliui'
npm ERR! notarget 

npm ERR! A complete log of this run can be found in:

-----------------20240105-----------------

npm ERR! notarget No matching version found for string-width-cjs@4.2.3.

npm ERR! notarget It was specified as a dependency of '@isaacs/cliui'

npm ERR! notarget No matching version found for wrap-ansi-cjs@7.0.0.

无论使用官方源还是淘宝源还是腾讯源,都提示这个信息

------------------------------------------

最后用tinymce-vue,安装成功

npm install --save "@tinymce/tinymce-vue@^4"

使用到具体页面,报错如下:

Uncaught (in promise) SyntaxError: The requested module '/node_modules/.vite/deps/@tinymce_tinymce-vue.js?v=fd6f3752' does not provide an export named 'Editor' (at