群里有人发了个SourceDetector,然后github看了下,想测试下对Vue源码还原的情况
下载地址:https://github.com/SunHuawei/SourceDetector/ 2018年的项目,有点老
安装:
(1)按照说明进行安装
git clone https://github.com/SunHuawei/SourceDetector.git
npm install
bower install
gulp
打开Chrome设置-扩展程序
点击"加载已解压的扩展程序..."
选择path/to/source-detector/dist目录
(2)另外需要:
npm install -g bower
npm install -g gulp
(3)出现的问题解决:
A.需要使用node 11版本,node 12经测试不行,会报错
B. 执行bower install 会报错:
bower ECMDERR Failed to execute "git ls-remote --tags --heads https://gith
ub.com/lodash/lodash.git", exit code of #128 fatal: unable to access 'https://gi
thub.com/lodash/lodash.git/': OpenSSL SSL_connect: Connection was reset in conne
ction to github.com:443
解决:
git config --global url."https://".insteadOf git://
参考:
https://blog.csdn.net/weixin_44722978/article/details/96852096
https://blog.csdn.net/u012551524/article/details/114939136
C.显示错误:
fatal: unable to access '××': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
参考:https://blog.csdn.net/qq_44209563/article/details/104294486
在执行(下面代码自行替换“”):
git config http.sslVerify “false”
git config --global http.sslVerify “false”
会报错:
fatal: not in a git directory
此时需要先
git init
再次执行则正常:
https://blog.csdn.net/weixin_44722978/article/details/96852096