4

先月(2月13日)HerokuにHubotインスタンスをhubot2.4.6でデプロイしました。

今日、新しいスクリプトを追加したかったのですが、herokuにデプロイし直すときにコンパイルエラーが発生しました。更新する前に、wikiの指示に従って新しいhubotをデプロイしようとすると、まったく同じエラーが発生します。ログは次のとおりです。

$ 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 git@heroku.com:radiant-taiga-1655.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:radiant-taiga-1655.git'

現在、Hubotは2.4.8です。同じ問題を抱えている人、または何かが足りない人はいますか?

4

2 に答える 2

10

同じ問題がありました。package.jsonでノードバージョンを0.8.21に変更することで修正しました。

"engines": {
  "node": "= 0.8.21",
  "npm": "1.1.x"
}
于 2013-03-13T15:25:58.147 に答える
0

そのため、NPM 1.2.9、nodejs 0.9.12で同様のエラーが発生し、npm cache cleanすべてを修正しました。

npm update失敗した後、実行npm cache cleanしてから再度実行npm updateします。

于 2013-03-18T22:14:11.283 に答える