【发布时间】:2019-07-20 12:41:20
【问题描述】:
每当本地文件发生更改时,我都会尝试使用 nodemon 自动启动服务器,但出现以下错误。
package.json
{
"name": "myapp",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi"
},
"dependencies": {
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"express": "~4.16.0",
"http-errors": "~1.6.2",
"morgan": "~1.9.0",
"pug": "^2.0.3"
},
"devDependencies": {
"nodemon": "^1.18.10"
}
}
【问题讨论】:
-
请在问题中直接显示错误,无需点击链接,最好是文本而不是图像。