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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。