ELIFECYCLE是什么意思?
这是我的应用程序代码: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文件也包含在要点中.
我正在寻找两个答案之一:ELIFECYCLE是什么意思?(或)为什么我的应用程序代码中出现错误?
Dan*_* W. 40
有人可能会认为这是因为npm和node的过时版本,但事实并非如此.
就像皮埃尔·英格尔伯特所说的那样,如果你研究一下这个来源,你可以看到,End of lifecycle该程序意外地停止了.这可能有各种原因.所以这不是语法错误,也不是预期的异常/错误.
当一个不同的工具已经使用我的节点脚本中定义的http端口(3000)时,错误出现了.在端口80上运行节点应用程序时,请确保已停止Apache Web服务器(作为示例).
ada*_*sdf 13
在处理WordPress主题时,我得到了相同的ELIFECYCLE错误,输出略有不同:
npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/Cellar/node/7.6.0/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v7.6.0 npm ERR! npm v3.7.3 npm ERR! code ELIFECYCLE npm ERR! foundationsix@1.0.0 postinstall: `bower install && gulp build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the foundationsix@1.0.0 postinstall script 'bower install && gulp build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the foundationsix package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! bower install && gulp build
再尝试npm install一次同样的结果,我试过了bower install.当那个成功的时候我试过了gulp build,这也很有效.
现在一切都很好.不知道为什么在&&失败时单独运行每个命令,但也许其他人会发现这个答案有用.
Mar*_*ari 11
在我的情况下,这是因为RAM内存较低,当照片压缩库无法处理更大的照片时.
在运行 Webpack 构建时,我遇到了类似的错误,因为节点不理解async await旧版本上的关键字。我添加了 webpack   babel-plugin-transform-async-to-generator并解决了。这用承诺代替了它们。
在 process._tickCallback (internal/process/next_tick.js:10 4:9) npm 错误!代码生命周期 npm 错误!错误号 1 npm 错误!ng-contact-manager@0.0.0 示例:`node src/server/dat a/seed-db.js` npm 错误!退出状态 1 npm 错误! npm 错误!在 ng-contact-manager@0.0.0 示例脚本中失败。 npm 错误!这可能不是 npm 的问题。有喜欢 上面只有额外的日志输出。 npm 错误!可以在以下位置找到此运行的完整日志:
我在这里有同样的问题是我最终是如何解决的!错误:
我npm run sample
在更正数据库连接用户名和密码后运行时出现终端错误
我使用 mlab 作为我的数据库,在文件 .env 下我忘记正确输入用户名和密码。当我纠正我的工作时。
> ng-contact-manager@0.0.0 示例 /Users/mohammedr.kemal/Downl oads/Ex_Files_ANGULAR_API_AUTH/练习文件/Ch01/01_04/start > 节点 src/server/data/seed-db.js 连接到mongodb... 连接到mongodb... 插入了 2 条记录。 关闭连接... 完毕。 插入了 12 条记录。 关闭连接... 完毕。
因此,如果有的话,最好查看我们在代码中建立的任何数据连接。
如果您像我一样来到这里,在尝试《React入门指南》时收到类似的错误之后,您可能想知道问题可能是由于未安装Watchman引起的。在此处下载它,或使用Homebrew安装它,brew install watchman然后重试:https : //facebook.github.io/watchman/docs/install.html
PS:您可能需要先做brew update。
| 归档时间: | 
 | 
| 查看次数: | 315741 次 | 
| 最近记录: |