question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My operation steps

1

npm install -g vue-cli right

2

vue init simulatedgreg/electron-vue my-project right

3

yarn

D:\stuty\electron\my-project  (my-project@0.0.1)                                                                                                                        
λ yarn                                                                                                                                                                  
yarn install v1.9.4                                                                                                                                                     
warning package.json: No license field                                                                                                                                  
info No lockfile found.                                                                                                                                                 
warning my-project@0.0.1: No license field                                                                                                                              
[1/4] Resolving packages...                                                                                                                                             
warning babili-webpack-plugin > babel-preset-babili@0.1.4: babili has been renamed to babel-minify. Please update to babel-preset-minify                                
warning css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.                    
warning css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.             
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools
.                                                                                                                                                                       
warning electron > electron-download > nugget > progress-stream > through2 > xtend > object-keys@0.4.0:                                                                 
[2/4] Fetching packages...                                                                                                                                              
info fsevents@1.2.4: The platform "win32" is incompatible with this module.                                                                                             
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.                                                         
[3/4] Linking dependencies...                                                                                                                                           
[4/4] Building fresh packages...                                                                                                                                        
success Saved lockfile.                                                                                                                                                 
$ npm run lint:fix                                                                                                                                                      
                                                                                                                                                                        
> my-project@0.0.1 lint:fix D:\stuty\electron\my-project                                                                                                                
> eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src                                                                                           
                                                                                                                                                                        
Done in 125.57s.

4

npm run build

Version: webpack 4.20.2                                                                                                                                                 
Time: 6170ms                                                                                                                                                            
Built at: 2018-10-12 10:48:13                                                                                                                                           
  Asset      Size  Chunks             Chunk Names                                                                                                                       
main.js  1.43 KiB       0  [emitted]  main                                                                                                                              
Entrypoint main = main.js                                                                                                                                               
[0] external "electron" 42 bytes {0} [built]                                                                                                                            
[1] ./src/main/index.js 801 bytes {0} [built]                                                                                                                           
[2] external "path" 42 bytes {0} [built]                                                                                                                                
                                                                                                                                                                        
Hash: 5125388731e03736346c                                                                                                                                              
Version: webpack 4.20.2                                                                                                                                                 
Time: 16054ms                                                                                                                                                           
Built at: 2018-10-12 10:48:23                                                                                                                                           
                Asset       Size  Chunks             Chunk Names                                                                                                        
imgs/logo--assets.png   60.4 KiB          [emitted]                                                                                                                     
          renderer.js    107 KiB       0  [emitted]  renderer                                                                                                           
           index.html  315 bytes          [emitted]                                                                                                                     
Entrypoint renderer = renderer.js                                                                                                                                       
 [0] ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 2.63 KiB {0} [built]                                                                                  
 [1] ./node_modules/vue-style-loader!./node_modules/css-loader!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-option
s!./src/renderer/App.vue?vue&type=style&index=0&lang=css& 608 bytes {0} [built]                                                                                         
 [3] ./node_modules/vue-style-loader!./node_modules/css-loader!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-option
s!./src/renderer/components/LandingPage.vue?vue&type=style&index=0&lang=css& 628 bytes {0} [built]                                                                      
 [5] ./node_modules/vue-style-loader/lib/addStylesClient.js + 1 modules 6.71 KiB {0} [built]                                                                            
     | ./node_modules/vue-style-loader/lib/addStylesClient.js 6.09 KiB [built]                                                                                          
     | ./node_modules/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 "axios" 42 bytes {0} [built]                                                                                                                              
[10] ./src/renderer/App.vue?vue&type=style&index=0&lang=css& 560 bytes {0} [built]                                                                                      
[11] ./node_modules/css-loader!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&typ
e=style&index=0&lang=css& 162 bytes {0} [built]                                                                                                                         
[17] ./src/renderer/components/LandingPage.vue?vue&type=style&index=0&lang=css& 600 bytes {0} [built]                                                                   
[19] ./src/renderer/store/modules sync nonrecursive \.js$ 192 bytes {0} [built]                                                                                         
[21] external "vue-electron" 42 bytes {0} [built]                                                                                                                       
[22] ./src/renderer/components/LandingPage.vue + 9 modules 5.63 KiB {0} [built]                                                                                         
     | ./src/renderer/components/LandingPage.vue 590 bytes [built]                                                                                                      
     | ./src/renderer/components/LandingPage.vue?vue&type=template&id=d52715ae& 215 bytes [built]                                                                       
     | ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 372 bytes [built]                                                                             
     | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPa
ge.vue?vue&type=template&id=d52715ae& 1.4 KiB [built]                                                                                                                   
     | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 269 bytes [b
uilt]                                                                                                                                                                   
     | ./src/renderer/components/LandingPage/SystemInformation.vue 665 bytes [built]                                                                                    
     | ./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=template&id=13129888&scoped=true& 239 bytes [built]                                         
     | ./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=script&lang=js& 396 bytes [built]                                                           
     | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPa
ge/SystemInformation.vue?vue&type=template&id=13129888&scoped=true& 1.24 KiB [built]                                                                                    
     | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/LandingPage/SystemInformation.vue?vue&type=script&lan
g=js& 298 bytes [built]                                                                                                                                                 
[23] ./src/renderer/main.js + 8 modules 288 KiB {0} [built]                                                                                                             
     | ./src/renderer/main.js 382 bytes [built]                                                                                                                         
     | ./node_modules/vue/dist/vue.esm.js 286 KiB [built]                                                                                                               
     | ./src/renderer/App.vue 547 bytes [built]                                                                                                                         
     | ./src/renderer/router/index.js 264 bytes [built]                                                                                                                 
     | ./src/renderer/store/index.js 202 bytes [built]                                                                                                                  
     | ./src/renderer/App.vue?vue&type=template&id=4ecb01d3& 201 bytes [built]                                                                                          
     | ./src/renderer/App.vue?vue&type=script&lang=js& 344 bytes [built]                                                                                                
     | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=tem
plate&id=4ecb01d3& 210 bytes [built]                                                                                                                                    
     | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=script&lang=js& 42 bytes [built]               
    + 9 hidden modules                                                                                                                                                  
Child html-webpack-plugin for "index.html":                                                                                                                             
         Asset     Size  Chunks  Chunk Names                                                                                                                            
    index.html  556 KiB       0                                                                                                                                         
    Entrypoint undefined = index.html                                                                                                                                   
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.08 KiB {0} [built]                                                                           
    [1] ./node_modules/lodash/lodash.js 527 KiB {0} [built]                                                                                                             
    [2] (webpack)/buildin/module.js 519 bytes {0} [built]                                                                                                               
                                                                                                                                                                        
                                                                                                                                                                        
 OKAY  take it away `electron-builder`                                                                                                                                  
                                                                                                                                                                        
  • electron-builder version=20.28.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.11 appOutDir=build\win-unpacked                                                                                
  • building        target=nsis file=build\my-project Setup 0.0.1.exe archs=x64 oneClick=true                                                                           
  • downloading               path=C:\Users\ccc\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.3.0 url=https://github.com/electron-userland/electron-builder
-binaries/releases/download/nsis-resources-3.3.0/nsis-resources-3.3.0.7z                                                                                                
  ⨯ Get https://github-production-release-asset-2e65be.s3.amazonaws.com/65527128/a66824a4-87df-11e7-82f2-5300303e3c85?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=
AKIAIWNJYAX4CSVEH53A%2F20181012%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181012T024908Z&X-Amz-Expires=300&X-Amz-Signature=0889be7f9506533c8b1002eadd3b238f4a76330e1b
cdd358bd2e8b88e60facd2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dnsis-resources-3.3.0.7z&response-content-type=applica
tion%2Foctet-stream: dial tcp 54.231.40.27:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or e
stablished connection failed because connected host has failed to respond.                                                                                              
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1                                                                                                  
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/downloader.go:167                                                                             
github.com/develar/app-builder/pkg/download.(*Downloader).follow                                                                                                        
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/downloader.go:200                                                                             
github.com/develar/app-builder/pkg/download.(*Downloader).Download                                                                                                      
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/downloader.go:75                                                                              
github.com/develar/app-builder/pkg/download.DownloadArtifact                                                                                                            
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/artifactDownloader.go:139                                                                     
github.com/develar/app-builder/pkg/download.ConfigureArtifactCommand.func1                                                                                              
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/artifactDownloader.go:50                                                                      
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*actionMixin).applyActions                                                                         
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/actions.go:28                                                         
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).applyActions                                                                         
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:557                                                            
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).execute                                                                              
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:390                                                            
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).Parse                                                                                
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:222                                                            
main.main                                                                                                                                                               
        /Users/develar/go/src/github.com/develar/app-builder/main.go:74                                                                                                 
runtime.main                                                                                                                                                            
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:198                                                                                                     
runtime.goexit                                                                                                                                                          
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:2361                                                                                                
                                                                                                                                                                        
Error: D:\stuty\electron\my-project\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1                                                             
    at ChildProcess.childProcess.once.code (D:\stuty\electron\my-project\node_modules\builder-util\src\util.ts:254:14)                                                  
    at Object.onceWrapper (events.js:273:13)                                                                                                                            
    at ChildProcess.emit (events.js:182:13)                                                                                                                             
    at maybeClose (internal/child_process.js:961:16)                                                                                                                    
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)                                                                                            
From previous event:                                                                                                                                                    
    at AsyncTaskManager.add (D:\stuty\electron\my-project\node_modules\builder-util\src\asyncTaskManager.ts:14:20)                                                      
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\src\targets\nsis\NsisTarget.ts:515:5                                                                   
    at Generator.next (<anonymous>)                                                                                                                                     
From previous event:                                                                                                                                                    
    at NsisTarget.computeCommonInstallerScriptHeader (D:\stuty\electron\my-project\node_modules\app-builder-lib\out\targets\nsis\NsisTarget.js:787:7)                   
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\src\targets\nsis\NsisTarget.ts:250:7                                                                   
    at Generator.next (<anonymous>)                                                                                                                                     
    at runCallback (timers.js:696:18)                                                                                                                                   
    at tryOnImmediate (timers.js:667:5)                                                                                                                                 
    at processImmediate (timers.js:649:5)                                                                                                                               
From previous event:                                                                                                                                                    
    at NsisTarget.buildInstaller (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\targets\nsis\NsisTarget.ts:274:7)                                       
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\out\targets\nsis\NsisTarget.js:328:22                                                                  
    at Generator.next (<anonymous>)                                                                                                                                     
From previous event:                                                                                                                                                    
    at NsisTarget.finishBuild (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\targets\nsis\NsisTarget.ts:111:6)                                          
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:384:36                                                                                 
    at Generator.next (<anonymous>)                                                                                                                                     
    at runCallback (timers.js:696:18)                                                                                                                                   
    at tryOnImmediate (timers.js:667:5)                                                                                                                                 
    at processImmediate (timers.js:649:5)                                                                                                                               
From previous event:                                                                                                                                                    
    at Packager.doBuild (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:344:39)                                                              
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:314:57                                                                                 
    at Generator.next (<anonymous>)                                                                                                                                     
    at D:\stuty\electron\my-project\node_modules\graceful-fs\graceful-fs.js:99:16                                                                                       
    at D:\stuty\electron\my-project\node_modules\graceful-fs\graceful-fs.js:43:10                                                                                       
    at FSReqWrap.oncomplete (fs.js:169:20)                                                                                                                              
From previous event:                                                                                                                                                    
    at Packager._build (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:285:133)                                                              
    at D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:281:23                                                                                 
    at Generator.next (<anonymous>)                                                                                                                                     
From previous event:                                                                                                                                                    
    at Packager.build (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\packager.ts:238:14)                                                                
    at build (D:\stuty\electron\my-project\node_modules\app-builder-lib\src\index.ts:58:28)                                                                             
    at build (D:\stuty\electron\my-project\node_modules\electron-builder\src\builder.ts:227:10)                                                                         
    at then (D:\stuty\electron\my-project\node_modules\electron-builder\src\cli\cli.ts:42:48)                                                                           
    at runCallback (timers.js:696:18)                                                                                                                                   
    at tryOnImmediate (timers.js:667:5)                                                                                                                                 
    at processImmediate (timers.js:649:5)                                                                                                                               
From previous event:                                                                                                                                                    
    at Object.args [as handler] (D:\stuty\electron\my-project\node_modules\electron-builder\src\cli\cli.ts:42:48)                                                       
    at Object.runCommand (D:\stuty\electron\my-project\node_modules\yargs\lib\command.js:238:44)                                                                        
    at Object.parseArgs [as _parseArgs] (D:\stuty\electron\my-project\node_modules\yargs\yargs.js:1085:24)                                                              
    at Object.get [as argv] (D:\stuty\electron\my-project\node_modules\yargs\yargs.js:1000:21)                                                                          
    at Object.<anonymous> (D:\stuty\electron\my-project\node_modules\electron-builder\src\cli\cli.ts:25:28)                                                             
    at Module._compile (internal/modules/cjs/loader.js:702:30)                                                                                                          
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)                                                                                            
    at Module.load (internal/modules/cjs/loader.js:612:32)                                                                                                              
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)                                                                                                            
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)                                                                                                     
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)                                                                                                  
    at startup (internal/bootstrap/node.js:238:19)                                                                                                                      
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)                                                                                                           
npm ERR! code ELIFECYCLE                                                                                                                                                
npm ERR! errno 1                                                                                                                                                        
npm ERR! my-project@0.0.1 build: `node .electron-vue/build.js && electron-builder`                                                                                      
npm ERR! Exit status 1                                                                                                                                                  
npm ERR!                                                                                                                                                                
npm ERR! Failed at the my-project@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\ccc\AppData\Roaming\npm-cache\_logs\2018-10-12T02_49_27_853Z-debug.log

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
webeescommented, Feb 27, 2019
set msvs_version=2015
set npm_config_target=4.0.5
set npm_config_target_arch=ia32
set npm_config_arch=ia32
set npm_config_runtime=electron
set npm_config_build_from_source=true
set npm_config_disturl=https://npm.taobao.org/mirrors/atom-shell

Use https://npm.taobao.org/mirrors/atom-shell

Use VPN or Shadowsocks

Clean 'C:\Users\Administrator\AppData\Local\electron\Cache'

4reactions
guestccccommented, Oct 12, 2018

I know how to solve it.

1

copy path:C:\Users\ccc.electron — (C:\User\PC_userName.electron)

image

2

paste path:C:\Users\ccc\AppData\Local\electron\Cache — (C:\User\PC_userName\AppData\Local\electron\Cache)

3

OK,build again

end

This is a network problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-build
This is the plumbing command called by npm link and npm install . It should generally be called during installation, but if you...
Read more >
What is the difference between npm install and npm run build?
npm install installs the depedendencies in your package.json config. · npm run build runs the script "build" and created a script which runs...
Read more >
Using Npm Scripts as a Build Tool in 2022 - Delicious Brains
Learn to use project specific npm scripts as both a task runner and a build tool, and unlock their advantages over other task...
Read more >
95. Build Project for Production Deployment using npm run ...
Hi FriendsIn this video, we will see how to build the project for the production deployment using npm run build command in the...
Read more >
Creating an Npm-Only Build Step for JavaScript — the Easy Way
Most scripts start out as Node.js scripts and afterwards might be adapted for your build tool. Using Node.js assures you the best choice...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found