npm install 报错:command failed git -c core.longpaths

时间:2015-12-21 15:57:50   收藏:0   阅读:1018

最近需要angularjs,从github上下载下来程序,在安装目录下执行命令 npm install(安装依赖包)时报错了。

技术分享

在stackOverflow上找到了解决方案:

技术分享

和他的情况一样,也是通过公司网关上网,需要在cmd下执行命令:

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

有需要的童鞋复制一下执行即可。

原文:http://www.cnblogs.com/3teeth/p/5063489.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!