From 57d365a9f445774edf83d3d26250cd0eea39b12e Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 21 Jun 2018 12:03:04 -0700 Subject: [PATCH] Update build-instructions-windows.md --- docs/development/build-instructions-windows.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/development/build-instructions-windows.md b/docs/development/build-instructions-windows.md index 7ea6acf54286..f8b6a7ebe49f 100644 --- a/docs/development/build-instructions-windows.md +++ b/docs/development/build-instructions-windows.md @@ -153,3 +153,11 @@ $ mkdir ~\AppData\Roaming\npm You may get this error if you are using Git Bash for building, you should use PowerShell or VS2015 Command Prompt instead. + +### cannot create directory at '...': Filename too long + +node.js has some [extremely long pathnames](https://github.com/electron/node/tree/electron/deps/npm/node_modules/libnpx/node_modules/yargs/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/parse-json/node_modules/error-ex/node_modules/is-arrayish), and by default git on windows doesn't handle long pathnames correctly (even though windows supports them). This should fix it: + +```sh +$ git config --system core.longpaths true +```