SimulatedGREG / electron-vue

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.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

yarn run build issue #969

Open ifc-fedev opened 4 years ago

ifc-fedev commented 4 years ago

Found an issue or bug with electron-vue? Tell me all about it!

when I run yarn run build, there have a issue

Describe the issue / bug.

Hash: 29964f4531ee274a6fd6 Version: webpack 4.41.4 Time: 757ms Built at: 2019/12/27 下午3:51:58 Asset Size Chunks Chunk Names main.js 1.44 KiB 0 [emitted] main Entrypoint main = main.js [0] external "electron" 42 bytes {0} [built] [1] ./src/main/index.js 786 bytes {0} [built] [2] external "path" 42 bytes {0} [built]

Hash: 5b8551eb9dc77919e7bb Version: webpack 4.41.4 Time: 5923ms Built at: 2019/12/27 下午3:52:03 Asset Size Chunks Chunk Names imgs/logo--assets.png 60.4 KiB [emitted]
index.html 318 bytes [emitted]
renderer.js 114 KiB 0 [emitted] renderer Entrypoint renderer = renderer.js [0] ./node_modules/_vue-loader@15.8.3@vue-loader/lib/runtime/componentNormalizer.js 2.63 KiB {0} [built] [1] ./node_modules/_vue-style-loader@4.1.2@vue-style-loader!./node_modules/_css-loader@0.28.11@css-loader!./node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=style&index=0&lang=css& 690 bytes {0} [built] [3] ./node_modules/_vue-style-loader@4.1.2@vue-style-loader!./node_modules/_css-loader@0.28.11@css-loader!./node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=style&index=0&lang=css& 710 bytes {0} [built] [5] ./node_modules/_vue-style-loader@4.1.2@vue-style-loader/lib/addStylesClient.js + 1 modules 6.71 KiB {0} [built] | ./node_modules/_vue-style-loader@4.1.2@vue-style-loader/lib/addStylesClient.js 6.09 KiB [built] | ./node_modules/_vue-style-loader@4.1.2@vue-style-loader/lib/listToStyles.js 637 bytes [built] [6] ./src/renderer/store/modules/index.js 238 bytes {0} [built] [7] external "vue-router" 42 bytes {0} [built] [8] external "vuex" 42 bytes {0} [built] [9] external "vuex-electron" 42 bytes {0} [built] [10] external "axios" 42 bytes {0} [built] [11] ./src/renderer/App.vue?vue&type=style&index=0&lang=css& 724 bytes {0} [built] [18] ./src/renderer/components/LandingPage.vue?vue&type=style&index=0&lang=css& 764 bytes {0} [built] [20] ./src/renderer/store/modules sync nonrecursive .js$ 192 bytes {0} [built] [22] external "vue-electron" 42 bytes {0} [built] [23] ./src/renderer/components/LandingPage.vue + 9 modules 5.82 KiB {0} [built] | ./src/renderer/components/LandingPage.vue 564 bytes [built] | ./src/renderer/components/LandingPage.vue?vue&type=template&id=d52715ae& 253 bytes [built] | ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 450 bytes [built] | ./node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=template&id=d52715ae& 1.42 KiB [built] | ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 269 bytes [built] | ./src/renderer/components/LandingPage/SystemInformation.vue 633 bytes [built] | ./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=template&id=13129888&scoped=true& 277 bytes [built] | ./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=script&lang=js& 474 bytes [built] | ./node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=template&id=13129888&scoped=true& 1.24 KiB [built] | ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=script&lang=js& 298 bytes [built] [24] ./src/renderer/main.js + 8 modules 321 KiB {0} [built] | ./src/renderer/main.js 382 bytes [built] | ./node_modules/_vue@2.6.11@vue/dist/vue.esm.js 319 KiB [built] | ./src/renderer/App.vue 529 bytes [built] | ./src/renderer/router/index.js 264 bytes [built] | ./src/renderer/store/index.js 342 bytes [built] | ./src/renderer/App.vue?vue&type=template&id=933ae842& 239 bytes [built] | ./src/renderer/App.vue?vue&type=script&lang=js& 422 bytes [built] | ./node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=template&id=933ae842& 210 bytes [built] | ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.8.3@vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=script&lang=js& 45 bytes [built]

Can't locate Mac/Memory.pm in @INC (you may need to install the Mac::Memory module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /private/var/folders/ms/478c3jbx313138h2f5_rhjzc0000gn/T/t-4TSxPk/1-dmgProperties.pl line 4. BEGIN failed--compilation aborted at /private/var/folders/ms/478c3jbx313138h2f5_rhjzc0000gn/T/t-4TSxPk/1-dmgProperties.pl line 4.

at /Users/huangtao/project/electronDemo/node_modules/_builder-util@10.1.2@builder-util/src/util.ts:126:16
at ChildProcess.exithandler (child_process.js:309:5)
at ChildProcess.emit (events.js:305:20)
at maybeClose (internal/child_process.js:1028:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

From previous event: at Promise.longStackTracesCaptureStackTrace [as _captureStackTrace] (/Users/huangtao/project/electronDemo/node_modules/_bluebird@3.7.2@bluebird/js/release/debuggability.js:482:19) at new PromiseSpawn (/Users/huangtao/project/electronDemo/node_modules/_bluebird@3.7.2@bluebird/js/release/generators.js:43:17) at /Users/huangtao/project/electronDemo/node_modules/_bluebird@3.7.2@bluebird/js/release/generators.js:197:21 at Packager.build (/Users/huangtao/project/electronDemo/node_modules/_app-builder-lib@20.44.4@app-builder-lib/src/packager.ts:288:14) at build (/Users/huangtao/project/electronDemo/node_modules/_app-builder-lib@20.44.4@app-builder-lib/src/index.ts:59:28) at build (/Users/huangtao/project/electronDemo/node_modules/_electron-builder@20.44.4@electron-builder/src/builder.ts:228:10) at /Users/huangtao/project/electronDemo/node_modules/_electron-builder@20.44.4@electron-builder/src/cli/cli.ts:49:19 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How can I reproduce this problem?

#

If visual, provide a screenshot.

#

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

bluesue6356 commented 4 years ago

macbook我也碰到这个问题,请问有解决的吗?

TyrusLockwood commented 4 years ago

I had the same problem. Node version: v10.15.3 / v12.14.1 / v8.0.0 NPM version: 6.4.1 / 6.13.4 / 5.0.0 vue-cli version: 4.1.2 Operating System: Mac OS 10.15.2

tans commented 4 years ago

npm i electron-builder@latest -S worked for me

jtanderson312 commented 4 years ago

Upgraded project to latest electron-builder and it worked. yarn add electron-builder

neu-yuyang commented 3 years ago

i meet the same wrong. just upgrade your electron-builder version. i upgraded to 22.9.1 and it works for me.