这个是什么问题呢?请问如何解决?
来源:3-7 初始化管理器与Process.cwd

慕仔7534083
2019-05-26
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
/Users/sanxiu/Desktop/wohefa/nodeTest/app.js:4
app.use(parser())
^
ReferenceError: parser is not defined
at Object. (/Users/sanxiu/Desktop/wohefa/nodeTest/app.js:4:5)
at Module._compile (internal/modules/cjs/loader.js:698:14)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Waiting for the debugger to disconnect…
2回答
-
慕仔7534083
提问者
2019-05-27
/Users/sanxiu/Desktop/wohefa/nodeTest/app.js:4的代码如下:
const Koa =require('koa')
const InitManager = require('./core/init')
const app = new Koa()
app.use(parser())
process.cwd()
InitManager.initCore(app)
032019-06-02 -
7七月
2019-05-26
代码 贴一下
00
相似问题
回答 3
回答 2