Electron's yarn run build has to download things online every time, can you not go online?

OKAY take it away electron-builder

electron-builder version=19.56.2
loaded configuration file=package.json ("build" field)
writing effective config file=build/electron-builder.yaml
rebuilding native production dependencies platform=linux arch=x64
rebuilding native dependency name=drivelist
rebuilding native dependency name=ref
Error: / usr/bin/node exited with code 1
Output:
$node-gyp rebuild
info Visit https://atom.io/download/elec.
gyp http 200 https://atom.io/download/elec.
gyp http GET https://atom.io/download/elec.
gyp WARN install got an error, Rolling back install
* * gyp err! Configure error
gyp err! Stack Error: connect ECONNREFUSED 52.216.224.224 gyp err! Stack at Object._errnoException (util.js:992:11)
gyp err! Stack at _ exceptionWithHostPort (util.js:1014:20)
gyp err! Stack at TCPConnectWrap.afterConnect [as oncomplete] * * (net.js:1186:14)
gyp err! System Linux 4.4.0-31-generic
gyp err! Command "/ usr/bin/node"/ usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"rebuild"
gyp err! Cwd / home/astute/development/HSRReceiver-master/ui/node_modules/ref
gyp err! Node-v v8.11.3
gyp err! Node-gyp-v v3.6.2
gyp err! Not ok
error Command failed with exit code 1.

at ChildProcess.childProcess.once.code (/home/astute/development/HSRReceiver-master/ui/node_modules/builder-util/src/util.ts:241: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 spawn (/home/astute/development/HSRReceiver-master/ui/node_modules/builder-util/src/util.ts:200:3)
at default.map.concurrency (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/util/yarn.ts:151:7)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)

From previous event:

at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/util/yarn.ts:149:27

From previous event:

at rebuild (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/util/yarn.js:93:22)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/util/yarn.ts:20:11
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 installOrRebuild (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/util/yarn.js:31:21)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/packager.ts:442:7
at Generator.next (<anonymous>)

From previous event:

at Packager.installAppDependencies (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/packager.js:496:11)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/packager.ts:356:20
at Generator.next (<anonymous>)

From previous event:

at Packager.doBuild (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/packager.js:432:11)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/packager.ts:308:52
at Generator.next (<anonymous>)
at /home/astute/development/HSRReceiver-master/ui/node_modules/graceful-fs/graceful-fs.js:99:16
at /home/astute/development/HSRReceiver-master/ui/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:135:15)

From previous event:

at Packager._build (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/packager.js:376:11)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/src/packager.ts:270:23
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 Packager.build (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder-lib/out/packager.js:332:11)
at /home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/src/builder.ts:310:40
at Generator.next (<anonymous>)

From previous event:

at _build (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/out/builder.js:61:21)
at build (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/src/builder.ts:280:10)
at then (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/src/cli/cli.ts:48:33)
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] (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/src/cli/cli.ts:48:33)
at Object.runCommand (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/node_modules/yargs/lib/command.js:235:44)
at Object.parseArgs [as _parseArgs] (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/node_modules/yargs/yargs.js:1042:24)
at Object.get [as argv] (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/node_modules/yargs/yargs.js:957:21)
at Object.<anonymous> (/home/astute/development/HSRReceiver-master/ui/node_modules/electron-builder/src/cli/cli.ts:42:15)
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

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/c. for documentation about this command.

Apr.11,2021

has been solved. Just configure Github's DNS as above


.
UPDATE: Sorry, wrong post. Like you said, it can be solved through npm link, but it's a bit troublesome to re-link before each execution, so you can try hack script execution automatically.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46d2d-44bfb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46d2d-44bfb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?