electron: Electron project can't start normally without network environment
- Electron Version:2.0.4
- Operating System (Platform and Version):Windows 10 64bit
- Node version:v8.0.4
- Last known working Electron version: Unknown
Expected Behavior The Electron project can start normally when all network adapters are disabled or network cables are unplugged.
Actual behavior Electron cannot start because of the following error:
dns.js:246 Uncaught Error: EFILE
at new Resolver (dns.js:246)
at dns.js:377
at dns.js:431
at NativeModule.compile (bootstrap_node.js:606)
at NativeModule.require (bootstrap_node.js:550)
at net.js:45
at net.js:1730
at NativeModule.compile (bootstrap_node.js:606)
at NativeModule.require (bootstrap_node.js:550)
at internal/child_process.js:6
Resolver @ dns.js:246
(anonymous) @ dns.js:377
(anonymous) @ dns.js:431
NativeModule.compile @ bootstrap_node.js:606
NativeModule.require @ bootstrap_node.js:550
(anonymous) @ net.js:45
(anonymous) @ net.js:1730
NativeModule.compile @ bootstrap_node.js:606
NativeModule.require @ bootstrap_node.js:550
(anonymous) @ internal/child_process.js:6
(anonymous) @ internal/child_process.js:936
NativeModule.compile @ bootstrap_node.js:606
NativeModule.require @ bootstrap_node.js:550
(anonymous) @ child_process.js:35
(anonymous) @ child_process.js:685
NativeModule.compile @ bootstrap_node.js:606
NativeModule.require @ bootstrap_node.js:550
(anonymous) @ ELECTRON_ASAR.js:4
(anonymous) @ ELECTRON_ASAR.js:703
(anonymous) @ ELECTRON_ASAR.js:704
NativeModule.compile @ bootstrap_node.js:606
NativeModule.require @ bootstrap_node.js:550
(anonymous) @ VM43:7
setupAsarSupport @ bootstrap_node.js:619
startup @ bootstrap_node.js:60
(anonymous) @ bootstrap_node.js:622
Uncaught ReferenceError: require is not defined
at (index):1
(anonymous) @ (index):1
renderer.js:1 Uncaught ReferenceError: module is not defined
at renderer.js:1
(anonymous) @ renderer.js:1
To Reproduce First create a simple Electron project, then disable all network adapters or unplug the network cable, and finally start the project.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (5 by maintainers)
@haykerman Yes, all the npm installation has been completed, and the project can run normally if the network cable is plugged in.