报错:git --no-replace-objects ls-remote https://github.com.cnpmjs.org/nhn/raphael.git
fatal: unable to access ‘https://github.com.cnpmjs.org/nhn/raphael.git/’: Failed to connect to 127.0.0.1 port 1080 after 2037 ms: Connection refused
尝试网上配公钥、git代理等ssh解决方法,发现都不行,原来这个错的原因是 tui-editor 改名引起的
方法参考:
https://www.panziye.com/java/web/4794.html
注意:
文章中那import的四行代码,第二行的路径和文件名已经变了,需要自己确认这个包内文件路径是否写对了,否则运行出错
import ‘codemirror/lib/codemirror.css’
import ‘@toast-ui/editor/dist/toastui-editor.css’
import Editor from ‘@toast-ui/editor’
import defaultOptions from ‘./default-options’