1.下載node.js
2.在安裝目錄下建立node_cachae和node_global
3.將node_global和node_modules改為全域性環境變數
4.在vscode中安裝code runner/JavaScript/live server
5.更改vscode中的使用者設定(settings.json)新增:
"liveServer.settings.donotShowInfoMsg": true,
"code-runner.runInTerminal": true,
"code-runner.executorMap": {
"python": "set PYTHONIOENCODING=utf8 && python ",
"javascript": "D:\\software\\nodejs\\node.exe"
},
"terminal.integrated.defaultProfile.windows": "Command Prompt"