当我在终端上输入 "heroku logs --tail" 时如何解决以下错误?这是什么意思?

How to fix the following errors when I typed in "heroku logs --tail" on my terminal ?? what does it mean?

一个月前,我通过观看许多视频和教程开始学习如何编码。这是我第一次使用 Whosebug 提问。感谢您花时间阅读本文! 我正在将我的应用程序部署到 Heroku,但我不确定为什么当我在终端中输入 "heroku open" 时它一直显示以下错误,它说我有 "application error"。我已经安装了 nodemon,但它显示 "nodemon not found"。感谢您的帮助! (mac 版本:macOS 莫哈韦沙漠)

sh: 1: nodemon: not found
npm ERR! file sh
: npm ERR! code ELIFECYCLE
: npm ERR! errno ENOENT
: npm ERR! syscall spawn
: npm ERR! finalproject-api@0.1.0 start: `nodemon server.js`
: npm ERR! spawn ENOENT
: npm ERR!
: npm ERR! Failed at the finalproject-api@0.1.0 start script.
: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

您能否将 Procfile 更改为使用 node 而不是 nodemon 来启动您的应用程序? Nodemon 是一个实用程序,它将监视源中的任何更改并自动重新启动服务器。非常适合开发,但不适合在 Heroku 上使用,因为 Heroku 支持 node buildpack 而不是 nodemon.

类似于以下内容:

过程文件:

web: node server.js

希望这能解决您的问题!