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 …Run Code Online (Sandbox Code Playgroud) 我尝试更新我正在使用的Laravel项目 composer update
但它坚持下去 Updating dependencies (including require-dev)
所以我尝试了更新composer,dump-autoload之类的东西,但似乎没有任何效果.然后我以详细模式运行它:composer update -vvv
我注意到它在读这个json时挂了:
Reading path/to/Composer/repo/https---packagist.org/provider-cordoval$hamcrest-php.json from cache
Run Code Online (Sandbox Code Playgroud)
我试着在packagist.org上搜索cordoval/hamcrest-php而找不到它.这不是我的依赖项composer.json
搜索我的供应商文件夹,我注意到mockery/mockery我使用的包需要hamcrest/hamcrest-php,但我找不到任何引用的包cordoval.
知道什么是错的,我怎么解决它,以便我可以做更新?
这是我的composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.2.*",
"iron-io/iron_mq": "dev-master",
"phpunit/phpunit": "4.2.*",
"mockery/mockery": "dev-master",
"xethron/migrations-generator": "dev-master",
"mailgun/mailgun-php": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [ …Run Code Online (Sandbox Code Playgroud) 我试图执行:
composer.phar update
Run Code Online (Sandbox Code Playgroud)
并收到:
致命错误:在第123行的phar:///home/xxxxxxx/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php中,允许的内存大小为94371840字节(试图分配71个字节)
该XXXXXXX是用户.
然后我试着执行:
php -d memory_limit=256M ~/bin/composer.phar update
Run Code Online (Sandbox Code Playgroud)
和:
php -d memory_limit=512M ~/bin/composer.phar update
Run Code Online (Sandbox Code Playgroud)
然后我收到了这个:
哎呀!你的一个进程(php,pid 14331)因资源使用过多而被杀死.有关详细信息,请联系DreamHost支持.**
如何在Dreamhost共享主机上执行composer update?经历过这种情况的人可以帮助我吗?
背景:Laravel 4