克隆项目时,出现这个错误:
将git clone https://github.com/PanJiaChen/vue-element-admin.git
中的https改为git或者http即可。
例如:git clone git://github.com/PanJiaChen/vue-element-admin.git
②报以下错误:
ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\L--R\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-7999bc79\.git --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\L--R\AppData\Local\Temp\pacote-git-template-tmp\git-clone-faa20b87
npm ERR! fatal: unable to access 'https://github.com/adobe-webplatform/eve.git/': OpenSSL SSL_read: Connection was aborted, errno 10053
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\L--R\AppData\Roaming\npm-cache\_logs\2022-05-04T06_58_24_168Z-debug.log
只需要在npm install之前 添加: git config --global url."https://".insteadOf git://
添加完在npm install一次