node.js - Node.js 中的奇怪错误消息

标签 node.js crash express

最近我收到了很多奇怪的错误消息,现在我什至无法启动 app.js。以下是什么意思,有人知道如何解决吗?

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Cannot read property 'port' of null
    at Object.<anonymous> (/Users/henrikpetersson81/node/last/test4/app.js:15:64)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:40)

最佳答案

该端口可能已被使用。我就是这种情况。

关于node.js - Node.js 中的奇怪错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10209653/

相关文章:

ios 应用程序在重新打开时崩溃

ios - 拥有更大图像尺寸的风险是什么

javascript - 在每个循环中的给定迭代中在 Handlebarsjs 中推送 html 标记

node.js - node-soap 更改操作的命名空间

javascript - "angular-bootstrap-md\index.ts is not part of the compilation output"

node.js - 有什么可以跟踪我安装的 npm 软件包并在不同的开发环境中恢复它们吗? (如 "Restore NuGet packages")

javascript - 获取数组作为原始命令行参数

iPhone程序崩溃和编译器显示的堆栈报告完全没有用!

javascript - 如何为 Node.js 中发生的每个错误发送电子邮件?

express - 使用 JWT 对单独的 API 微服务进行身份验证