Home  >  Article  >  Development Tools  >  What should I do if vscode cannot be opened offline?

What should I do if vscode cannot be opened offline?

藏色散人
藏色散人Original
2019-12-21 09:19:352576browse

What should I do if vscode cannot be opened offline?

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

What should I do if vscode cannot be opened offline?

# #After the Add Hardware Wizard pops up, the next step is

What should I do if vscode cannot be opened offline?

Select manual installation

What should I do if vscode cannot be opened offline?

Select the network adapter

What should I do if vscode cannot be opened offline?

Select Microsoft KM-TEST in Microsoft to replace the adapter, and then continue until the installation is complete.

What should I do if vscode cannot be opened offline?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn