У меня проблема с электронным компоновщиком.
https://medium.com/how-to-electron/a-complete-guide-to-packaging-your-electron-app-1bdc717d739f
Я следовал этому полному руководству по упаковке электронного приложения с использованием электронного компоновщика, но я не знаю, почему я получаю эту ошибку.
любые мысли будут оценены, спасибо.
вот примеры журналов ошибок, которые я получаю.
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\ROG\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dist' ]
2 info using npm@6.12.0
3 info using node@v10.16.0
4 verbose run-script [ 'predist', 'dist', 'postdist' ]
5 info lifecycle electron-quick-start@1.0.0~predist: electron-quick-start@1.0.0
6 info lifecycle electron-quick-start@1.0.0~dist: electron-quick-start@1.0.0
7 verbose lifecycle electron-quick-start@1.0.0~dist: unsafe-perm in lifecycle true
8 verbose lifecycle electron-quick-start@1.0.0~dist: PATH: C:\Users\ROG\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\electron-quick-start\node_modules\.bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\xampp\php;C:\composer;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin\;C:\Users\ROG\AppData\Local\Microsoft\WindowsApps;C:\Users\ROG\AppData\Roaming\Composer\vendor\bin;C:\Users\ROG\AppData\Roaming\npm;C:\Users\ROG\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ROG\AppData\Local\Yarn\bin
9 verbose lifecycle electron-quick-start@1.0.0~dist: CWD: C:\xampp\htdocs\electron-quick-start
10 silly lifecycle electron-quick-start@1.0.0~dist: Args: [ '/d /s /c', 'build' ]
11 silly lifecycle electron-quick-start@1.0.0~dist: Returned: code: 1 signal: null
12 info lifecycle electron-quick-start@1.0.0~dist: Failed to exec dist script
13 verbose stack Error: electron-quick-start@1.0.0 dist: `build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\ROG\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\ROG\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid electron-quick-start@1.0.0
15 verbose cwd C:\xampp\htdocs\electron-quick-start
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ROG\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dist"
18 verbose node v10.16.0
19 verbose npm v6.12.0
20 error code ELIFECYCLE
21 error errno 1
22 error electron-quick-start@1.0.0 dist: `build`
22 error Exit status 1
23 error Failed at the electron-quick-start@1.0.0 dist script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]```
here is my package.json
{
"name": "electron-quick-start",
"version": "1.0.0",
"description": "A minimal Electron application",
"main": "main.js",
"scripts": {
"postinstall": "install-app-deps",
"start": "electron .",
"pack": "build --dir",
"dist": "build"
},
"build": {
"appID": "com.demo.quickstart",
"win": {
"target": ["nsis"],
"icon": "build/icon.ico"
}
},
"repository": "https://github.com/electron/electron-quick-start",
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo"
],
"author": "GitHub",
"license": "CC0-1.0",
"devDependencies": {
"electron": "^6.0.12",
"electron-builder": "^21.2.0"
}
}