What should I do if vscode cannot be opened offline?
About the solution to the problem that vscode cannot be started offline under the latest version of win10
Related recommendations: vscode introductory tutorial
Problem description: Double-click vscode icon, it is found that the program cannot be started. After using cmd to enter the code, it prompts:
dns.js:246 this._handle = new ChannelWrap(); ^ Error: EFILE at new Resolver (dns.js:246:20) at dns.js:377:25 at dns.js:431:3 at NativeModule.compile (bootstrap_node.js:606:7) at NativeModule.require (bootstrap_node.js:550:18) at net.js:45:13 at net.js:1730:3 at NativeModule.compile (bootstrap_node.js:606:7) at NativeModule.require (bootstrap_node.js:550:18) at internal/child_process.js:6:13
This problem is caused by the core of Electron (Electron is a cross-platform desktop application development tool released by GitHub). Even if you roll back vscode The version is useless.
Solution
The current effective way to solve this problem is to enable the loopback adapter. When the computer is not plugged in a network cable, you can use the loopback adapter to virtualize a network provider. Programmers use it for testing, especially in offline development environments!
The steps to enable the loopback adapter are:
Open the Device Manager, select your PC and click Add Obsolete Hardware under Operations
# #After the Add Hardware Wizard pops up, the next step is Select manual installation Select the network adapter Select Microsoft KM-TEST in Microsoft to replace the adapter, and then continue until the installation is complete.The above is the detailed content of What should I do if vscode cannot be opened offline?. For more information, please follow other related articles on the PHP Chinese website!