提升Sails.js应用程序会导致node.js断言错误

时间:2016-02-17 15:04:27

标签: node.js sails.js

我最近将Sails.js升级到最新版本:0.12.1。在使用Nodemon解除Sails时,我在终端中收到以下错误:

node.js:262
      if (!x) throw new Error(msg || 'assertion error');
                    ^
Error: assertion error
    at process.assert (node.js:262:21)
    at process.removeListener (node.js:674:9)
    at removeListeners (/usr/local/lib/node_modules/sails/lib/app/lower.js:166:19)
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:713:13
    at iterate (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:262:13)
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:274:29
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:44:16
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:718:17
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:167:37
    at Server.<anonymous> (/usr/local/lib/node_modules/sails/lib/app/lower.js:148:13)
    at Server.g (events.js:199:16)
    at Server.emit (events.js:129:20)
    at net.js:1419:10
    at process._tickDomainCallback (node.js:381:11)
17 Feb 20:27:03 - [nodemon] app crashed - waiting for file changes before starting...

我不完全确定是什么导致了这一点,而StackOverflow上的其他任何线程都没有答案。当我停止进程并通过键入nodemon重新启动它时,错误就会消失。这是我的环境:

  • Node.js版本:v0.12.7
  • NPM版本:2.11.3
  • Sails.js版本:0.12.1

我该如何解决这个问题?

0 个答案:

没有答案