Vue-element-admin报错代码128
第一次运行Vue-element-admin根据文档需要进行:
npm install
运行后报错:
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b 2.2.0-c https://github.com/nhn/raphael.git D:\New Folder\node_cache\_cacache\tmp\git-clone-b4ae
b180 --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\北冥有鱼\AppData\Local\Temp\pacote-git-template-tmp\git-clone-8e1e240e
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! D:\New Folder\node_cache\_logs\2023-04-17T09_46_36_507Z-debug.log
根据文档输入如下,但错误依旧是那些错误
git config --global http.sslverify “false”
百度了一下,试运行以下命令错误有所减少,错误如下
git config --global url.“https://”.insteadOf git://
npm ERR! Error while executing:
npm ERR! D:\GIT\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/adobe-webplatform/eve.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! D:\New Folder\node_cache\_logs\2023-04-17T09_52_56_683Z-debug.log
再运行以下命令,更换为淘宝
npm config set registry https://registry.npm.taobao.org
最后安装执行以下命令就能用了
npm install --registry http://registry.npmmirror.com
安装完成后项目就能运行了,输入命令:
npm run dev