Не удалось развернуть Hubot на Heroku

Я развернул экземпляр Hubot на Heroku в прошлом месяце (13 февраля) с hubot 2.4.6.

Сегодня я хотел добавить новый скрипт и получил ошибку компиляции при развертывании обратно в героку. Перед обновлением я попытался развернуть новый новый хабот, следуя инструкциям вики, приводит к той же ошибке, вот логи:

$ git push heroku master
Counting objects: 23, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (23/23), 10.58 KiB, done.
Total 23 (delta 0), reused 0 (delta 0)

-----> Node.js app detected
-----> Resolving engine versions
       Using Node.js version: 0.10.0
       Using npm version: 1.1.65
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
       npm http GET https://registry.npmjs.org/optparse/1.0.3
       npm http GET https://registry.npmjs.org/hubot
       npm http GET https://registry.npmjs.org/hubot-scripts
       npm http 200 https://registry.npmjs.org/optparse/1.0.3
       npm http GET https://registry.npmjs.org/optparse/-/optparse-1.0.3.tgz
       npm http 200 https://registry.npmjs.org/hubot-scripts
       npm http GET https://registry.npmjs.org/hubot-scripts/-/hubot-scripts-2.4.2.tgz
       npm http 200 https://registry.npmjs.org/hubot
       npm http GET https://registry.npmjs.org/hubot/-/hubot-2.4.8.tgz
       npm http 200 https://registry.npmjs.org/optparse/-/optparse-1.0.3.tgz
       npm http 200 https://registry.npmjs.org/hubot-scripts/-/hubot-scripts-2.4.2.tgz
       npm http 200 https://registry.npmjs.org/hubot/-/hubot-2.4.8.tgz
       npm ERR! cb() never called!
       npm ERR! not ok code 0
 !     Failed to install --production dependencies with npm
 !     Heroku push rejected, failed to compile Node.js app

To [email protected]:radiant-taiga-1655.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:radiant-taiga-1655.git'

Сейчас у Хубота 2.4.8. У кого такая же проблема или я что-то пропустил?


person demental    schedule 13.03.2013    source источник
comment
У меня такая же проблема сегодня, и я пытаюсь решить эту проблему.   -  person pegatron    schedule 13.03.2013


Ответы (2)


У нас была такая же проблема. Мы исправили это, изменив версию узла на 0.8.21 в package.json.

"engines": {
  "node": "= 0.8.21",
  "npm": "1.1.x"
}
person mbp    schedule 13.03.2013
comment
Да, это решило проблему! Благодарю. Я предполагаю, что это очень временная ситуация, поэтому я постараюсь в ближайшее время разморозить версию узла. - person demental; 13.03.2013
comment
Это исправляет развертывание, но приложение Node.js по-прежнему не может быть собрано для меня при просмотре журналов heroku :( - person Simpleton; 14.03.2013

Итак, у меня были похожие ошибки на NPM 1.2.9, nodejs 0.9.12 и npm cache clean все исправили.

После сбоя npm update запустите npm cache clean, а затем снова запустите npm update.

person Kevin Meyer    schedule 18.03.2013