An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
• electron-builder version=20.44.4
• loaded configuration file=package.json ("build" field)
• writing effective config file=build\builder-effective-config.yaml
• no native production dependencies
• packaging platform=win32 arch=x64 electron=2.0.18 appOutDir=build\win-unpacked
⨯ remove C:\Users\agu\Desktop\tzkj\my-project\build\win-unpacked\blink_image_resources_200_percent.pak: The process cannot access the file because it is being used by another process.
github.com/develar/go-fs-util.EnsureEmptyDir
/Volumes/data/go/pkg/mod/github.com/develar/go-fs-util@v0.0.0-20190620175131-69a2d4542206/fs.go:98
github.com/develar/app-builder/pkg/electron.unpackElectron.func1.1
/Volumes/data/Documents/app-builder/pkg/electron/electronUnpack.go:37
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
/Volumes/data/Documents/app-builder/pkg/util/async.go:67
runtime.goexit
/usr/local/Cellar/go/1.12.6/libexec/src/runtime/asm_amd64.s:1337
Error: C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1
at ChildProcess. (C:\Users\agu\Desktop\tzkj\my-project\node_modules\builder-util\src\util.ts:244:14)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1051:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
From previous event:
at _unpack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\out\electron\ElectronFramework.js:259:18)
at unpack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\out\electron\ElectronFramework.js:218:18)
at ElectronFramework.prepareApplicationStageDirectory (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\electron\ElectronFramework.ts:115:12)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:180:21
at Generator.next ()
From previous event:
at WinPackager.doPack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:167:165)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:113:16
at Generator.next ()
From previous event:
at WinPackager.pack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:111:95)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:430:24
at Generator.next ()
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16
at callback (C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\polyfills.js:299:20)
at FSReqCallback.oncomplete (fs.js:176:5)
From previous event:
at Packager.doBuild (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:396:24)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:366:57
at Generator.next ()
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\graceful-fs.js:144:16
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\graceful-fs.js:61:14
at FSReqCallback.oncomplete (fs.js:163:23)
From previous event:
at Packager._build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:335:133)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:331:23
at Generator.next ()
at processImmediate (internal/timers.js:456:21)
From previous event:
at Packager.build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:288:14)
at build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\index.ts:59:28)
at build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\electron-builder\src\builder.ts:228:10)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\electron-builder\src\cli\cli.ts:49:19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-electron@0.0.1 build: node .electron-vue/build.js && electron-builder
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-electron@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\agu\AppData\Roaming\npm-cache_logs\2021-06-18T08_12_28_058Z-debug.log
npm run dev正常,run build报错
OKAY take it away
electron-builder
• electron-builder version=20.44.4 • loaded configuration file=package.json ("build" field) • writing effective config file=build\builder-effective-config.yaml • no native production dependencies • packaging platform=win32 arch=x64 electron=2.0.18 appOutDir=build\win-unpacked ⨯ remove C:\Users\agu\Desktop\tzkj\my-project\build\win-unpacked\blink_image_resources_200_percent.pak: The process cannot access the file because it is being used by another process. github.com/develar/go-fs-util.EnsureEmptyDir /Volumes/data/go/pkg/mod/github.com/develar/go-fs-util@v0.0.0-20190620175131-69a2d4542206/fs.go:98 github.com/develar/app-builder/pkg/electron.unpackElectron.func1.1 /Volumes/data/Documents/app-builder/pkg/electron/electronUnpack.go:37 github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2 /Volumes/data/Documents/app-builder/pkg/util/async.go:67 runtime.goexit /usr/local/Cellar/go/1.12.6/libexec/src/runtime/asm_amd64.s:1337
Error: C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1 at ChildProcess. (C:\Users\agu\Desktop\tzkj\my-project\node_modules\builder-util\src\util.ts:244:14)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1051:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
From previous event:
at _unpack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\out\electron\ElectronFramework.js:259:18)
at unpack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\out\electron\ElectronFramework.js:218:18)
at ElectronFramework.prepareApplicationStageDirectory (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\electron\ElectronFramework.ts:115:12)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:180:21
at Generator.next ()
From previous event:
at WinPackager.doPack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:167:165)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:113:16
at Generator.next ()
From previous event:
at WinPackager.pack (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\platformPackager.ts:111:95)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:430:24
at Generator.next ()
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16
at callback (C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\polyfills.js:299:20)
at FSReqCallback.oncomplete (fs.js:176:5)
From previous event:
at Packager.doBuild (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:396:24)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:366:57
at Generator.next ()
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\graceful-fs.js:144:16
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\graceful-fs\graceful-fs.js:61:14
at FSReqCallback.oncomplete (fs.js:163:23)
From previous event:
at Packager._build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:335:133)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:331:23
at Generator.next ()
at processImmediate (internal/timers.js:456:21)
From previous event:
at Packager.build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\packager.ts:288:14)
at build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\app-builder-lib\src\index.ts:59:28)
at build (C:\Users\agu\Desktop\tzkj\my-project\node_modules\electron-builder\src\builder.ts:228:10)
at C:\Users\agu\Desktop\tzkj\my-project\node_modules\electron-builder\src\cli\cli.ts:49:19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-electron@0.0.1 build:
node .electron-vue/build.js && electron-builder
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-electron@0.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\agu\AppData\Roaming\npm-cache_logs\2021-06-18T08_12_28_058Z-debug.log