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.

  • Version: ^20.19.2
  • Target: Windows 10

When adding the package node-hid I get the following error which doesn’t say what went wrong:

Error: F:\electron\node_test-1\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1
    at ChildProcess.childProcess.once.code (F:\electron\node_test-1\node_modules\builder-util\src\util.ts:254:14)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
    at computeNodeModuleFileSets (F:\electron\node_test-1\node_modules\app-builder-lib\out\util\appFileCopier.js:429:18)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:272:42
    at Generator.next (<anonymous>)
From previous event:
    at then (F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:268:14)
From previous event:
    at _computeFileSets (F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:269:10)
    at WinPackager.copyAppFiles (F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:306:27)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:213:10
    at Generator.next (<anonymous>)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at WinPackager.doPack (F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:166:165)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:112:16
    at Generator.next (<anonymous>)
From previous event:
    at WinPackager.pack (F:\electron\node_test-1\node_modules\app-builder-lib\src\platformPackager.ts:110:95)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:376:24
    at Generator.next (<anonymous>)
    at xfs.stat (F:\electron\node_test-1\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16)
    at F:\electron\node_test-1\node_modules\graceful-fs\polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:153:5)
From previous event:
    at Packager.doBuild (F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:344:39)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:314:57
    at Generator.next (<anonymous>)
    at F:\electron\node_test-1\node_modules\graceful-fs\graceful-fs.js:99:16
    at F:\electron\node_test-1\node_modules\graceful-fs\graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:135:15)
From previous event:
    at Packager._build (F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:285:133)
    at F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:281:23
    at Generator.next (<anonymous>)
From previous event:
    at Packager.build (F:\electron\node_test-1\node_modules\app-builder-lib\src\packager.ts:238:14)
    at build (F:\electron\node_test-1\node_modules\app-builder-lib\src\index.ts:58:28)
    at build (F:\electron\node_test-1\node_modules\electron-builder\src\builder.ts:227:10)
    at then (F:\electron\node_test-1\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at Object.args [as handler] (F:\electron\node_test-1\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at Object.runCommand (F:\electron\node_test-1\node_modules\yargs\lib\command.js:237:44)
    at Object.parseArgs [as _parseArgs] (F:\electron\node_test-1\node_modules\yargs\yargs.js:1085:24)
    at Object.get [as argv] (F:\electron\node_test-1\node_modules\yargs\yargs.js:1000:21)
    at Object.<anonymous> (F:\electron\node_test-1\node_modules\electron-builder\src\cli\cli.ts:25:28)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node_test-1@0.0.1 build: `node .electron-vue/build.js && electron-builder`
npm ERR! Exit status 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
FlipOneDevcommented, Sep 12, 2018

I got pretty much the same build error trace as @Wolrab1, using electron-builder 20.28.4, electron 2.0.9, webpack 4.18.0, @babel/core 7.0.0.

Hours spent without any progress - would be nice if @develar has any ideas on this.

0reactions
stale[bot]commented, Jul 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-hid - npm
USB HID device access library. Latest version: 2.1.2, last published: 3 months ago. Start using node-hid in your project by running `npm i ......
Read more >
Access USB & Bluetooth HID devices through Node.js
A node-hid device is an EventEmitter . While it shares some method names and usage patterns with Readable and Writable streams, it is...
Read more >
node-hid-ng v1.0.1 - npm.io
A node-hid device is an EventEmitter . While it shares some method names and usage patterns with Readable and Writable streams, it is...
Read more >
node-hid JavaScript and Node.js code examples - Tabnine
Best JavaScript code snippets using node-hid(Showing top 13 results out of 315) · hid_mbot.js/checkHIDConnected · index.js/LEDController/write · blync.js/devices.
Read more >
How to use the node-hid.HID function in node-hid - Snyk
To help you get started, we've selected a few node-hid.HID examples, based on popular ways it is used in public projects.
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