Vue npm install淘宝镜像 报错误 code 128

错误信息

npm ERR! code 128

npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\admin\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-3410726e\.git --config core.longpaths=true

npm ERR! warning: templates not found in C:\Users\admin\AppData\Local\Temp\pacote-git-template-tmp\git-clone-93b19545

npm ERR! fatal: read error: Invalid argument

npm ERR!

npm ERR! A complete log of this run can be found in:

npm ERR!    C:\Users\admin\AppData\Roaming\npm-cache\_logs\2020-06-20T02_00_21_446Z-debug.log

方法1

git config --global http.sslverify "false"

方法2

git config --global url."https://".insteadOf git://

npm install --registry=https://registry.npm.taobao.org

你可能感兴趣的:(Vue npm install淘宝镜像 报错误 code 128)