git 拉取远程项目后,npm install 报错 code 128

npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b emoji-support https://github.com/laurent22/uslug.git D:\Develop\nodejs\node_cache\_cacache\tmp\git-clone-e118e738 --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\yuanfeng2\AppData\Local\Temp\pacote-git-template-tmp\git-clone-87f65673
npm ERR! fatal: unable to access 'https://github.com/laurent22/uslug.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!

 解决办法:

在vscode 终端执行

git config --global http.sslverify "false"

这样以后再重新npm i 就好啦

猜你喜欢

转载自blog.csdn.net/qq_41885295/article/details/121721200