javascript - Nodemon is not running
问题描述
I am trying to get my nodemon to start running. But somehow it doesn't run and it have no error message and it's pretty frustrating.
Please see my package.json below:
{
"name": "umbrella_maintenance",
"version": "1.0.0",
"description": "",
"main": "app-express.js",
"scripts": {
"start": "nodemon"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"ejs": "^3.1.5",
"express": "^4.17.1"
},
"devDependencies": {
"nodemon": "^2.0.6"
}
}
I tried running npm run start
but it simply do not work. No error message no nothing.
My app runs fine when I try to start with node app-express.js
, but doesn't work when it's nodemon. Any advice?
解决方案
The documentation says that you need to run nodemon like this nodemon [your node app]
. So in your case: nodemon app-express.js
. There are a variety of other useful options for nodemon. It's worth reading the documentation.
推荐阅读
- ruby - 如何构建一个 ruby .deb 包?
- firebase - 如何避免在 firebase ML Kit 的人脸检测 API 中捕获模糊图像
- c - 为什么 fgets() 在第一个元素之后不读取?
- url - TYPO3 v9 slug 后备中文、俄语或阿拉伯语 URL 到拉丁语
- python - 在 html5 文件中使用 jinja 格式的 for 循环出错
- javascript - Javascript中的简单求和不起作用
- reactjs - 如果页面未知或重定向,托管的静态文件不会重定向
- html - 选择元素(optgroup)值未在 Safari 中显示 - CSS
- angular - 在页面之间共享数据 - 错误 - 错误:类型 HomePage 是 2 个模块声明的一部分:
- python - 使用 django 上传和查看图像的问题