Answer the question
In order to leave comments, you need to log in
Why am I getting an error that nodemon was not found?
Hello, I want to deploy a telegram bot to heroku from github, the modules are installed, it says that the application has successfully assembled and everything should work, but I get the following error:
and in the logs this:
package.json
"scripts": {
{
"name": "CurEx",
"version": "1.0.0",
"description": "CurEx",
"main": "index.js",
"scripts": {
"start": "nodemon babel-node index --presets=env"
},
"author": "gorillasz",
"license": "ISC",
"dependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"cherio": "^1.0.0-rc.2",
"moment": "^2.24.0",
"node-fetch": "^2.6.0",
"node-telegram-bot-api": "^0.40.0"
},
"devDependencies": {
"nodemon": "^2.0.2"
}
}"
},
web: npm start
Answer the question
In order to leave comments, you need to log in
Your script starts with nodemon. At the same time, the nodemon package itself is listed in dev dep. Try writing "start":" node index.js" in package.json
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question