Path too long issues on Windows
See original GitHub issueI am having problems on Windows when creating installers for our application. We have set asar = false
for our builds but now we are getting Path too long
errors. I have taken a look at the Electron App Packaging docs and they suggest that you can use a combination of app.asar
and app.asar.unpacked
.
The problem lies within our node_modules
directory. I have files within my source that need to be unpacked but would like to have node_modules
in an asar archive to avoid these errors. When I attempt to do this though my app is unable to find any modules.
Is my understanding of this method correct or am I just missing some steps here?
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Destination Path Too Long Error When Moving/Copying a File
If you are facing the error Destination Path Too Long when trying to copy or move a file to a folder in Windows,...
Read more >Fix: "Error 0x80010135: Path Too Long" Error on Windows
The error 0x80010135 appears typically when you enter a file name that is more than 260 characters in the File Explorer or WinZip....
Read more >Destination Path Too Long in Windows - Effectively Solved!
Why Destination Path Too Long Happens? Solution 1: Shorten the Name for the Parent Folder; Solution 2: Change the File Extension to Text...
Read more >Fix Destination path too long error in Windows 10 / 11
Solution 1] Enable Long Path Support using the Registry Editor · Solution 2] Rename the parent folder · Solution 3] Temporarily rename the...
Read more >How to Make Windows 10 Accept File Paths Over 260 ...
To enable long file paths in Windows, open Registry Editor, create a new DWORD named "LongPathsEnabled" in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi there… if there is any issue about path too long I can suggest one best solution. try the Long Path Tool and it will make your life easier. thanks.
I have tried this and can’t seem to get it working. On Mac I am only able to require specific files using its path relative to the
.asar
(require('app.asar/node_modules/index.js')
), not the whole module itself. Windows I can’t do either.Is this the intended behavior?