在使用
npm install
安装依赖时报错
npm ERR! Error while executing:
npm ERR! D:\Program Files\Git\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed to connect to github.com port 443 after 21062 ms: Timed out
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program Files\nodejs\node_cache\_logs\2022-12-09T02_24_43_296Z-debug.log
怎么解决?
- 可以清除DNS
- 执行命令ipconfig /flushdns