[英]Npm start fails
here is my terminal :- 这是我的航站楼:
Q:\\clone\\node-cloudinary-instagram\\node_modules\\express\\lib\\router\\route.js:202 throw new Error(msg); Q:\\ clone \\ node-cloudinary-instagram \\ node_modules \\ express \\ lib \\ router \\ route.js:202抛出新错误(msg);
node server.js
node server.js
npm ERR! npm ERR! Exit status 1 npm ERR!
退出状态1 npm ERR! npm ERR!
npm ERR! Failed at the scotch-cloudinary@1.0.0 start script.
在scotch-cloudinary@1.0.0启动脚本处失败。 npm ERR!
npm ERR! This is probably
这可能是
not a problem with npm. npm没问题。 There is likely additional logging output
可能还有其他日志记录输出
above. 以上。
npm ERR! npm ERR! A complete log of this run can be found in: npm ERR!
可以在以下位置找到该运行的完整日志:npm ERR!
C:\\Users\\Chetan C:\\ Users \\ Chetan
Sharma\\AppData\\Roaming\\npm-cache_logs\\2019-03-21T00_16_50_000Z-debug.log Sharma \\ AppData \\ Roaming \\ npm-cache_logs \\ 2019-03-21T00_16_50_000Z-debug.log
Here is my package.json file code 这是我的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" } }
check here Q:\\clone\\node-cloudinary-instagram\\server.js:19:20
(line 20) 在这里检查
Q:\\clone\\node-cloudinary-instagram\\server.js:19:20
(第20行)
Error: Route.get() requires a callback function but got a [object Undefined] at Route.
this is a hint ^^^ 这是一个提示^^^
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.