electron / windows-installer

Build Windows Installers for Electron apps
MIT License
1.58k stars 261 forks source link

long node_module paths cause problem - any ideas? #301

Open ddelapasse2 opened 5 years ago

ddelapasse2 commented 5 years ago

I was SO close! Got my test setup building fine, but then I tried my real project which is using some 3rd party controls with looong paths. I cut down my project name to 3 characters and got past the first error, but then I got this even larger one (see below). I know this isn't a problem with your repo, but do you have any ideas for me to create an installer (even manually if there aren't too many steps)?

C:\Users\Deanna\AppData\Local\Temp\electron-16916e0fPo743dnU7\rcp_5.1.0_undefined\rcp\resources\app\node_modules\@syncfusion\ej2-angular-dropdowns\schematics\generators\autocomplete-custom-filtering\samples\path\name@dasherize@if-flat\name@dasherize.component.css

Using these steps: "pkgr1": "node postinstall && electron-builder install-app-deps && npm run electron:serve-tsc && ng build", "pkgr2": "electron-packager . rcp --overwrite --platform win32 --arch x64 --out deploy/", "pkgr3": "electron-installer-windows --config installerConfig.json"

Thanks!

========== full error mesage below ==================

Creating package (this may take a while) Error: Error creating package with NuGet: Error executing command (Exited with status 1): C:\Users\Deanna\AppData\Roaming\npm\node_modules\electron-installer-windows\vendor\nuget\nuget.exe pack C:\Users\Deanna\AppData\Local\Temp\electron-16916e0fPo743dnU7\rcp_5.1.0_undefined\nuget\rcp.nuspec -BasePath C:\Users\Deanna\AppData\Local\Temp\electron-16916e0fPo743dnU7\rcp_5.1.0_undefined\rcp -OutputDirectory C:\Users\Deanna\AppData\Local\Temp\electron-16916e0fPo743dnU7\rcp_5.1.0_undefined\nuget -NoDefaultExcludes Could not find a part of the path 'C:\Users\Deanna\AppData\Local\Temp\electron-16916e0fPo743dnU7\rcp_5.1.0_undefined\rcp\resources\app\node_modules\@syncfusion\ej2-angular-dropdowns\schematics\generators\autocomplete-custom-filtering\samples__path\name@dasherize@if-flat\name@dasherize__.component.css'.

at spawn.then.catch.err (C:\Users\Deanna\AppData\Roaming\npm\node_modules\electron-installer-windows\node_modules\electron-installer-common\src\spawn.js:21:13)
at process._tickCallback (internal/process/next_tick.js:68:7) 'Error: Error creating package with NuGet: Error executing command (Exited with status 1):\nC:\\Users\\Deanna\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\vendor\\nuget\\nuget.exe pack C:\\Users\\Deanna\\AppData\\Local\\Temp\\electron-16916e0fPo743dnU7\\rcp_5.1.0_undefined\\nuget\\rcp.nuspec -BasePath C:\\Users\\Deanna\\AppData\\Local\\Temp\\electron-16916e0fPo743dnU7\\rcp_5.1.0_undefined\\rcp -OutputDirectory C:\\Users\\Deanna\\AppData\\Local\\Temp\\electron-16916e0fPo743dnU7\\rcp_5.1.0_undefined\\nuget -NoDefaultExcludes\nCould not find a part of the path \'C:\\Users\\Deanna\\AppData\\Local\\Temp\\electron-16916e0fPo743dnU7\\rcp_5.1.0_undefined\\rcp\\resources\\app\\node_modules\\@syncfusion\\ej2-angular-dropdowns\\schematics\\generators\\autocomplete-custom-filtering\\samples\\__path__\\__name@dasherize@if-flat__\\__name@dasherize__.component.css\'.\r\n\n    at spawn.then.catch.err (C:\\Users\\Deanna\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\node_modules\\electron-installer-common\\src\\spawn.js:21:13)\n    at process._tickCallback

(internal/process/next_tick.js:68:7)'

ligutanjma commented 4 years ago

I also have this issue. Ubuntu 18.04