Skip to content

long node_module paths cause problem - any ideas? #301

Open

Description

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)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions