When I try to run in the production mode, then I got the below error:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! shop-api@1.0.0 start:prod: `NODE_ENV=production nodemon server.js` npm ERR! Exit status 1
{
"name": "shop-api",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"start:dev": "nodemon server.js",
"start:prod": "NODE_ENV=production nodemon server.js",
"debug": "ndb server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"mongoose": "^5.9.6",
"morgan": "^1.10.0",
"ndb": "^1.1.5"
},
"devDependencies": {
"nodemon": "^2.0.2"
}
}