Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no 7zia32.exe in vendor #386

Open
dongfeng520 opened this issue May 24, 2021 · 7 comments
Open

no 7zia32.exe in vendor #386

dongfeng520 opened this issue May 24, 2021 · 7 comments

Comments

@dongfeng520
Copy link

dongfeng520 commented May 24, 2021

no 7z-ia32.exe in vendor ,only 7z-x64.exe

@MarkusSvensson
Copy link

MarkusSvensson commented May 27, 2021

I faced the same problem and made this workaround (until it is fixed by this pull request #378):

  1. Run

npm install --ignore-scripts

to install 5.0.0 without running the failing script (select-7z-arch.js).

  1. Manually download .dll & .exe file from fix: Added 7zip 32 bit binaries. #378 to the node_modules/electron-winstaller/vendor folder and rename them to 7z.exe and 7z.dll.

@funding-invoice-admin
Copy link

Hi i got the same problem here, any solution ?
Got this after upddate to Webpack 5.61

`
[4/19] ⠐ electron-winstaller
warning Error running install script for optional dependency: "C:\Users\JonasKabalo\desktop\fundinginvoice\admin-electron\node_modules\electron-winstaller: Command failed.
Exit code: 1
Command: node ./script/select-7z-arch.js
Arguments:
Directory: C:\Users\JonasKabalo\desktop\fundinginvoice\admin-electron\node_modules\electron-winstaller
Output:
Selecting 7-Zip for arch ia32
C:\Users\JonasKabalo\desktop\fundinginvoice\admin-electron\node_modules\electron-winstaller\script\select-7z-arch.js:16
throw err;
^

Error: ENOENT: no such file or directory, copyfile 'vendor/7z-ia32.exe' -> 'vendor/7z.exe'
at Object.copyFileSync (fs.js:1991:3)
at Object. (C:\Users\JonasKabalo\desktop\fundinginvoice\admin-electron\node_modules\electron-winstaller\script\select-7z-arch.js:14:8)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -4058,
syscall: 'copyfile',
code: 'ENOENT',
`

@AndrewMuise
Copy link

I resolved this by updating my node version from 16.13.0 -> 16.13.2, seems to have been an issue with node itself and how the os module was working

@JonasKabalo
Copy link

thanks @AndrewMuise is working 🙂

@jagthedrummer
Copy link

This is still a problem on Windows with node 16.17.0.

@jagthedrummer
Copy link

After banging my head against this for a while I finally discovered that I had accidentally installed x86 node instead of x64 node. Once I switched to x64 this problem went away.

@oopses
Copy link

oopses commented Sep 4, 2023

This is still a problem on Windows with node 16.17.0.

After banging my head against this for a while I finally discovered that I had accidentally installed x86 node instead of x64 node. Once I switched to x64 this problem went away.

MR merged the branch into Master, but then the Master branch was deleted and switched to the Main branch

#378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants