一、在官网下载安装node
Node.js根据提示安装。
二、配置环境变量
右键我的电脑→属性→高级系统设置→环境变量→path
→在最后一行添加node安装地址
三、在vscode中配置
1、
2、点击设置进入launch.json文件进行配置
// nodemon 配置 { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "nodemon", "runtimeExecutable": "nodemon", "program": "${workspaceFolder}\\server\\bin\\www", "restart": true, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" } ] }
3、
调试即可