这是我的终端机:-
Q:\ clone \ node-cloudinary-instagram \ node_modules \ express \ lib \ router \ route.js:202 抛出新的错误(msg);
node server.js
npm错误!退出状态1 npm ERR! npm ERR!失败于
scotch-cloudinary@1.0.0启动脚本。 npm ERR!这可能是
npm没问题。可能还有其他日志记录输出
以上。
npm错误!有关此运行的完整日志,请参见:npm ERR!
C:\ Users \ Chetan
Sharma \ AppData \ Roaming \ npm-cache_logs \ 2019-03-21T00_16_50_000Z-debug.log
这是我的package.json文件代码
{
"name": "scotch-cloudinary",
"version": "1.0.0",
"description": "Demo on how to use Cloudinary",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"keywords": [
"Cloudinary"
],
"author": "Christian Nwamba",
"license": "MIT",
"dependencies": {
"body-parser": "^1.15.2",
"cloudinary": "^1.13.2",
"ejs": "^2.5.2",
"express": "^4.14.0"
}
}
答案 0 :(得分:0)
在此处Q:\clone\node-cloudinary-instagram\server.js:19:20
(第20行)
Error: Route.get() requires a callback function but got a [object Undefined] at Route.
这是一个提示^^^