Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 无法在Heroku上部署Hubot_Node.js_Heroku_Hubot - Fatal编程技术网

Node.js 无法在Heroku上部署Hubot

Node.js 无法在Heroku上部署Hubot,node.js,heroku,hubot,Node.js,Heroku,Hubot,我上个月(2月13日)在Heroku上用Hubot 2.4.6部署了一个Hubot实例 今天我想添加一个新脚本,但在部署回heroku时出现编译错误。 在更新之前,我尝试部署一个新的hubot,遵循wiki说明会导致完全相同的错误,以下是日志: $ git push heroku master Counting objects: 23, done. Delta compression using up to 8 threads. Compressing objects: 100% (19/19)

我上个月(2月13日)在Heroku上用Hubot 2.4.6部署了一个Hubot实例

今天我想添加一个新脚本,但在部署回heroku时出现编译错误。 在更新之前,我尝试部署一个新的hubot,遵循wiki说明会导致完全相同的错误,以下是日志:

$ 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。
有没有人有同样的问题,或者我遗漏了什么

我们也有同样的问题。我们通过将package.json中的节点版本更改为0.8.21来修复它

"engines": {
  "node": "= 0.8.21",
  "npm": "1.1.x"
}

因此,我在NPM 1.2.9、nodejs 0.9.12和
NPM cache clean
上出现了类似的错误,修复了所有问题


npm更新
失败后,运行
npm缓存清理
,然后再次运行
npm更新

我今天也遇到了同样的问题,并试图解决这个问题。是的,它确实解决了这个问题!谢谢我想这是一个非常暂时的情况,因此我将很快尝试解冻节点版本。这修复了部署,但在跟踪heroku日志时,node.js应用程序仍然无法为我构建:(