yarn add camelcase@5.3.1出错error An unexpected error occurred

问题遇到的现象和发生背景

我用yarn add添加camelcase@5.3.1,可是一直报这个错error An unexpected error occurred: "https://github.com/seonim-ryu/Squire: socket hang up".

运行结果及报错内容

img

我的解答思路和尝试过的方法

网上相关问题的解决办法主要是换淘宝源还有查https://github.com/seonim-ryu/Squire的ip地址,然后将ip地址添加到hosts文件,这两个我都试了好几次,没用

切换成淘宝镜像后,使用npm命令安装可以吗

cnpm试试

https://blog.csdn.net/centerstars/article/details/128261306

解决方案

因为vue 放弃“tui-editor“: “1.3.3“,已经更名为toast-ui/editor,需要在package.json中将“tui-editor“: “1.3.3“ 修改成"@toast-ui/editor": “^3.1.3”,重新运行yarn 即可;