Nodemon not found even after adding it as a dev dependency

My package.json

{
  "name": "backend",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "npm i",
    "dev": "nodemon server.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "bcrypt": "^5.1.0",
    "dotenv": "^16.3.1",
    "express": "^4.18.2",
    "jsonwebtoken": "^9.0.1",
    "mongoose": "^7.4.2",
    "validator": "^13.11.0"
  },
  "devDependencies": {
    "nodemon": "^3.0.1"
  }
}

  1. devDependencies are deleted after build. If you need it to run your app on Render, it’s not a dev dependency.
  2. If I recall correctly, when the $NODE_ENV environment variable is unset, it defaults to a value of production. I don’t know if you’ve changed that for your app on Render.
    However;
  3. nodemon is not necessary for use on Render. The Render platform will keep your application running even when only using the basic node command to execute your application.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.