为什么我的NODE-PHP模块有错误EPIPE?

时间:2018-11-22 22:22:27

标签: javascript php node.js

模块node-PHP和Node.js出现以下问题,当我尝试加载网站时,控制台中出现以下错误: 这是一台装有Windows 10操作系统的计算机。

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at Socket._writeGeneric (net.js:768:25)
    at Socket._write (net.js:787:8)
    at doWrite (_stream_writable.js:396:12)
    at writeOrBuffer (_stream_writable.js:382:5)
    at Socket.Writable.write (_stream_writable.js:290:11)
    at Socket.write (net.js:711:40)
    at runPHP (C:\wamp64\www\website\node_modules\node-php\main.js:72:13)
    at IncomingMessage.<anonymous> (C:\wamp64\www\website\node_modules\node-php\main.js:142:4)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

我的index.js

//Setting static route
app.set('port', process.env.PORT || 3000);
app.use("/", php.cgi(path.join(__dirname)));

0 个答案:

没有答案