执行安装命令:
npm install --save tui-editor
报错如下:
npm WARN deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest 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: unable to connect to github.com: npm ERR! github.com[0: 20.205.243.166]: errno=No such file or directory npm ERR! 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\wbs\AppData\Roaming\npm-cache\_logs\2023-05-12T15_06_01_874Z-debug.log
然后各种解决方案都是修改代理(我梯子秒开谷歌)、设置镜像、更改成cnpm、yarn等方式,结果都失败了!
后来找到一个有效的,就是把git://改成 https://就行了
git config --global url."https://".insteadOf git://
再次执行安装就成功了。