【发布时间】:2018-09-18 08:44:56
【问题描述】:
我到处找,找不到解决办法
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"
}
}
我在 Heroku 中寻找解决方案,但没有找到
【问题讨论】:
-
您是否检查了输出底部附近列出的日志文件?
-
在您的代码中的某处,您正在使用
body-Parser(大写 P),这显然不存在于依赖项中。应该是body-parser