I searched everywhere and could not find the solution
package.json
{
"name": "apirest",
"version": "1.0.0",
"description": "API para consultar rucs de Paraguay por numero o nommbre",
"main":"index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "Daniel Resoalbe resoalbe@gmail.com",
"license": "ISC",
"dependencies": {
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.18.3",
"crypto": "^1.0.1",
"express": "^4.16.3",
"express-handlebars": "^3.0.0",
"jwt-simple": "^0.5.1",
"moment": "^2.22.2",
"mongoose": "^5.2.15"
},
"devDependencies": {
"nodemon": "^1.18.4"
}
}
I looked for a solution in Heroku, but I did not find it
It's most likely a typo as harshalgangurde said and btw you don't even need to install body parser, it's included in express by default. You can use these built in middleware functions for example:
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.