node.js - ELIFECYCLE Node.js 错误是什么意思?

标签 node.js

生命周期是什么意思?

这是我的应用代码:https://gist.github.com/samholmes/388ca4552c5936b52c5d

当我运行“blast-emails”命令时,它会运行一段时间,直到很快崩溃并出现错误:

npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "/root/.nvm/versions/io.js/v1.6.1/bin/iojs" "/root/.nvm/versions/io.js/v1.6.1/bin/npm" "run" "live"
npm ERR! node v1.6.1
npm ERR! npm  v2.7.1
npm ERR! code ELIFECYCLE
npm ERR! emailer@0.0.0 live: `NODE_ENV=production node app.js`
npm ERR! Exit status 137
npm ERR! 
npm ERR! Failed at the emailer@0.0.0 live script 'NODE_ENV=production node app.js'.
npm ERR! This is most likely a problem with the emailer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=production node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls emailer
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /apps/emailer/npm-debug.log

npm-debug.log 文件也包含在 gist 中。

我正在寻找以下两个答案之一:ELIFECYCLE 是什么意思? (或)为什么我的应用程序代码中出现错误?

最佳答案

这基本上是说它无法生成您的进程不是由于许可而是由于您的脚本中的错误。 Source

执行 NODE_ENV=production node app.js 没有任何问题?

关于node.js - ELIFECYCLE Node.js 错误是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30744964/

相关文章:

javascript - 如何仅引用文件中的一个变量而不是node.js 中的所有导出?

javascript - meteorjs - 像 django 这样的管理员用户

node.js - bcrypr 异步与同步 Node.js

javascript - 将快速路由器参数分离到不同的文件中

javascript - 如何打印来自 Promise 函数的结果

node.js - 如何增加启动时的内存?

node.js - 使用 sequelize 和 express.js 获取数据到 ionic

node.js - 是否可以使用 PhantomJS 和 Node 从模板动态生成 PDF?

node.js - Typescript 中每个类的单独文件?

javascript - 使用 XRegExp 验证 JavaScript (Node.js) 中的 UTF-8 名称