Installation has failed - System.IO.PathTooLongException


#1

Hello there, my first post .
Trying to install Atom, but it failed over and over again.

When opening Setup log, it mentions something about System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

By the way: this happens on Windows 7 Profession 64-bit Dutch , on a domain-joined computer. I have all rights to install software though.

Help? Is it OK to post the setup log here?


#2

Hi,

You might want to have a look at this open issue on the repository:

It looks like you’re hitting the same problem.


#3

Thanks, The open issue mentions the problem occurring with 0.176 and suggests installing an older version, i.e. 0.175. I was trying to install v1.0.11.0 . Any suggestions?


#4

Path too long … I would say it is maybe a wee bit too long. Part of the directory listing:

...
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\lib
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\doc
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\doc\wg-meetings
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\lib
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\core-util-is
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\core-util-is\lib
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\isarray
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\isarray\build
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\process-nextick-args
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\string_decoder
C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\util-deprecate
...

Why 5 times “node_modules” in a path?


#5

That is due to the way Node works. If a package depends on another package, that package is placed inside the node_modules folder. In your example:

C:\Users\p.wiegmans.BONHOEFFER\AppData\Local\atom\app-1.0.11\lib\net45\resources\app\apm\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules\util-deprecate

apm depends on npm
npm depends on npm-registry-client
npm-registry-client depends on concat-stream
concat-stream depends on readable-stream
readable-stream depends on util-deprecate

Until the issue linked above is resolved, I think you’ll have to use the ‘portable’ version of Atom, which you can extract anywhere (and thus ensure the path does not exceed Windows’ path length limit). You can grab atom-windows.zip from https://github.com/atom/atom/releases.


#6

Thank, that clears thing a bit. The portable version works great!