![](/img/trans.png)
[英]nodemon app crashed - waiting for file changes before starting… nodejs
[英]nodejs file changes not reflecting even nodemon & supervisor
我已经设置并运行了这个项目https://github.com/achowba/node-mysql-crud-app 。 它工作正常,但在任何文件中没有反映在前端的更改后,前端输出始终保持与以前相同。
nodemon app.js
时显示以下输出
C:\xampp\htdocs\node-mysql-crud-app>nodemon app.js
[nodemon] 2.0.2
[nodemon] reading config .\nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 5896 to restart
[nodemon] ignoring: .\.git/**/* node_modules/**/node_modules
[nodemon] watching dir(s): app.js routes\**\* views\**\*
[nodemon] watching extensions: js,json,ejs
[nodemon] bind restart -> `osascript -e 'display notification "App restarted due to:
'$FILENAME'" with title "nodemon"'`
[nodemon] starting `node app.js`
[nodemon] forking
[nodemon] child pid: 1692
[nodemon] watching 7 files
Server running on port: 2000
Connected to database
我的 nodemon.json 文件
{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"execMap": {
"js": "node"
},
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
},
"watch": [
"app.js",
"routes/",
"views/"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js,json,ejs"
}
我的目录如下
我也试过supervisor
但同样的问题。 硬缓存清除也尝试过但没有反映。 请帮助我现在可以做什么
终于解决了。 这是netbeans IDE 问题。 当我在记事本++中编辑然后更改反射但在netbeans中不起作用。 不知道为什么 netbenas 不起作用。 我已经删除并重新创建了这个项目。 之后,现在甚至无法在 netbeans 中为此项目创建新项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.