当前位置 博文首页 > fareast_mzh的博客:node.js项目热更新
npm install -g nodemon
运行方式node改为nodemon
node index.js改为 nodemon index.js
改package.json 添加
"scripts": { "start": "nodemon index.js" }
npm start?