1.安装nodemon npm i nodemon -g 2.找到nodemon.cmd 3.修改环境变量 4.测试 打开cmd 打开vscode 如果在cmd里面nodemon -v 显示版本号,在vs里面不显示,可以重启vs再尝试下。