情况如下 找了很多方法,加了环境变量,重新安装nodemon都没用 解决 改用 supervisor,效果跟nodemon一样 使用npm安装supervisor npm install -g supervisor 使用