npm install时报错:npm ERR! fatal: unable to access

$ npm install
npm ERR! code 128
npm ERR! A git connection error occurred
npm ERR! command git --no-replace-objects clone -b 2.2.0-c ssh://git@github.com/nhn/raphael.git C:\Users\Administrator\AppData\Local\npm-cache\_cacache\tmp\git-cloneJowlmS --recurse-submodules --depth=1 --config core.longpaths=true
npm ERR! Cloning into 'C:\Users\Administrator\AppData\Local\npm-cache\_cacache\tmp\git-cloneJowlmS'...
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed to connect to github.com port 443 after 21061 ms: Timed out


解决办法: git config --global url."https://".insteadOf git://

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