最近需要angularjs,从github上下载下来程序,在安装目录下执行命令 npm install(安装依赖包)时报错了。
在stackOverflow上找到了解决方案:
和他的情况一样,也是通过公司网关上网,需要在cmd下执行命令:
git config --global url."https://".insteadOf git://
有需要的童鞋复制一下执行即可。
npm install 报错:command failed git -c core.longpaths
原文:http://www.cnblogs.com/3teeth/p/5063489.html