Use node.js debugging error solution in vscode

One: VSCode reports an error when using node.js to debug

1. Error message

internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module 'd:/����/����/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
Require stack:
- internal/preload
    at Functio

Insert picture description here

2. The reason for the error

The node installation path is in Chinese, which causes the js debugging in vscode to report an error.

Node installation path: "d:/ / ", including Chinese characters.

Two: Solution

  • Step 1: Control Panel --> Clock and Area
    Insert picture description here
  • Step 2: Click "Region"
    Insert picture description here
  • Step 3: Click "Manage
    Insert picture description here
  • Step 4: Click "Change System Regional Settings". Select the Beta version: Use Uncode UTF-8 to provide the option of global language support. Click OK and restart the computer
    Insert picture description here

Three: the effect after a successful solution

Insert picture description here

Four: Original

Guess you like

Origin blog.csdn.net/weixin_45844049/article/details/109489743