justadudewhohacks / justadudewhohacks/opencv4nodejs
npm run build -- -c production && npx electron-builder build --windows open app fail
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
Hello @justadudewhohacks ,
following is package.json:
----------------------------------------------------------------------------------------------
"scripts": {
"postinstall": "npm run postinstall:electron && npx electron-builder install-app-deps",
"postinstall:web": "node postinstall-web",
"postinstall:electron": "node postinstall",
"ng": "ng",
"start": "npm run postinstall:electron && npm-run-all -p ng:serve electron:serve",
"build": "npm run postinstall:electron && npm run electron:serve-tsc && ng build",
"build:dev": "npm run build -- -c dev",
"build:prod": "npm run build -- -c production",
"ng:serve": "ng serve",
"ng:serve:web": "npm run postinstall:web && ng serve -o",
"electron:serve-tsc": "tsc -p tsconfig-serve.json",
"electron:serve": "wait-on http-get://localhost:4200/ && npm run electron:serve-tsc && electron . --serve",
"electron:local": "npm run build:prod && electron .",
"electron:linux": "npm run build:prod && npx electron-builder build --linux",
"electron:windows": "npm run build:prod && npx electron-builder build --windows",
---------------------------------------------------------------------------------------------
I run 'npm run start', it is working; but when I run 'npm run electron:windows', open the app*.exe, error mesage is :
**ERROR Error: The specified module could not be found.
\\?\C:\Users\Zhao\AppData\Local\Temp\9bc6c5f4-7fec-40f6-92f5-ccae770a530c.tmp.node**
Do you have any ideas about that?
Thank you for your time ;)
---------------------------------------------------------------------------------------------
*OpenCV version* (example 3.4.1): 4.14.0
*With OpenCV-contrib?* (extra modules): yes
*OS*: Windows 10
Contributor guide
Assessment
This issue has not been assessed yet.