猿问

在学习所向披靡的响应式开发中,在打包发布进行代码压缩时使用node.js出现以下报错,怎么解决?

TypeError: Cannot read property 'on' of undefined
 at Transform.Readable.pipe (_stream_readable.js:501:7)
    at Gulp.<anonymous> (C:\Users\xx\Documents\xx\ResponsiveWeb\gulpfile.js:21:10)
    at module.exports (C:\Users\xx\Documents\xx\ResponsiveWeb\node_modules\orchestrator\lib\runTask.js:34:7)
    at Gulp.Orchestrator._runTask (C:\Users\xx\Documents\xx\ResponsiveWeb\node_modules\orchestrator\index.js:273:3)
    at Gulp.Orchestrator._runStep (C:\Users\xx\Documents\xx\ResponsiveWeb\node_modules\orchestrator\index.js:214:10)
    at Gulp.Orchestrator.start (C:\Users\xx\Documents\xx\ResponsiveWeb\node_modules\orchestrator\index.js:134:8)
    at C:\Users\xx\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129:20
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    at Module.runMain (module.js:606:11)

JACK1230
浏览 2572回答 1
1回答

侠客岛的含笑

看看你server.js code的代码
随时随地看视频慕课网APP
我要回答