Arguments: ls-remote --tags --heads https://github.com/xxx.git

yarn install

Arguments: ls-remote --tags --heads https://github.com/vuejs/vue-test-utils.git

Directory: D:\WorkSpace\CodeSpace\崇杏\baidaguaV2\wise-monitor

Output:

fatal: unable to access 'https://github.com/vuejs/vue-test-utils.git/': Failed to connect to github.com port

443 after 21069 ms: Timed out

解决方法:在项目根目录运行下列命令

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

你可能感兴趣的:(npm,yarn,vue,react)