A
A
asd dsa2020-01-27 22:41:31
JavaScript
asd dsa, 2020-01-27 22:41:31

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:
5e2f3c66ed25e441983896.png

and in the logs this:
5e2f3c84cd3c7734533051.png

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"
  }
}"
  },


proc file
web: npm start

please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Osipov, 2020-01-28
@yaNastia

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 question

Ask a Question

731 491 924 answers to any question