https://www.cnblogs.com/junwu/p/6004663.html
http://245993596.iteye.com/blog/2317715
- Update to msysgit 1.9 (or later)
- Launch Git Bash
- Got to your Git repository which 'suffers' of long paths issue
- Enable long paths support with git config core.longpaths true
當(dāng)報(bào)如下錯(cuò)誤時(shí)候
fatal: unable to stat 'node_modules/gulp-connect/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse/parser.generated.js': Filename too long
可以使用以下命令來修復(fù):
git config --system core.longpaths true
也可以僅設(shè)置當(dāng)前項(xiàng)目:
git config core.longpaths true
查看設(shè)置狀態(tài):
git config core.longpaths