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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/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
Heroku zlib模块不能很好地配合web部署_Heroku_Trigger.io - Fatal编程技术网

Heroku zlib模块不能很好地配合web部署

Heroku zlib模块不能很好地配合web部署,heroku,trigger.io,Heroku,Trigger.io,试图部署到heroku,似乎zlib模块没有很好地发挥作用。有什么想法吗 2012-08-16T20:50:07+00:00 heroku[slugc]: Slug compilation finished 2012-08-16T20:50:09+00:00 heroku[web.1]: Starting process with command `node web.js` 2012-08-16T20:50:09+00:00 app[web.1]: 2012-08-16T20:50:09+00

试图部署到heroku,似乎zlib模块没有很好地发挥作用。有什么想法吗

2012-08-16T20:50:07+00:00 heroku[slugc]: Slug compilation finished
2012-08-16T20:50:09+00:00 heroku[web.1]: Starting process with command `node web.js`
2012-08-16T20:50:09+00:00 app[web.1]: 
2012-08-16T20:50:09+00:00 app[web.1]: node.js:134
2012-08-16T20:50:09+00:00 app[web.1]:         throw e; // process.nextTick error, or 'error' event on first tick
2012-08-16T20:50:09+00:00 app[web.1]:         ^
2012-08-16T20:50:09+00:00 app[web.1]: Error: Cannot find module 'zlib'
2012-08-16T20:50:09+00:00 app[web.1]:     at Function._resolveFilename (module.js:320:11)
2012-08-16T20:50:09+00:00 app[web.1]:     at Function._load (module.js:266:25)
2012-08-16T20:50:09+00:00 app[web.1]:     at require (module.js:348:19)
2012-08-16T20:50:09+00:00 app[web.1]:     at Object.<anonymous> (/app/node_modules/express/node_modules/connect/lib/middleware/compress.js:14:12)
2012-08-16T20:50:09+00:00 app[web.1]:     at Module._compile (module.js:404:26)
2012-08-16T20:50:09+00:00 app[web.1]:     at Object..js (module.js:410:10)
2012-08-16T20:50:09+00:00 app[web.1]:     at Module.load (module.js:336:31)
2012-08-16T20:50:09+00:00 app[web.1]:     at Function._load (module.js:297:12)
2012-08-16T20:50:09+00:00 app[web.1]:     at require (module.js:348:19)
2012-08-16T20:50:09+00:00 app[web.1]:     at Object.compress (/app/node_modules/express/node_modules/connect/lib/connect.js:89:14)
2012-08-16T20:50:11+00:00 heroku[web.1]: Process exited with status 1
2012-08-16T20:50:11+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-16T20:50:07+00:00 heroku[slugc]:Slug编译完成
2012-08-16T20:50:09+00:00 heroku[web.1]:使用命令'node web.js'启动进程`
2012-08-16T20:50:09+00:00应用程序[网站1]:
2012-08-16T20:50:09+00:00应用程序[网站1]:node.js:134
2012-08-16T20:50:09+00:00应用程序[web.1]:抛出e;//process.nextTick错误,或第一次勾选时的“error”事件
2012-08-16T20:50:09+00:00应用程序[网站1]:^
2012-08-16T20:50:09+00:00应用程序[web.1]:错误:找不到模块“zlib”
2012-08-16T20:50:09+00:00应用程序[web.1]:at函数(module.js:320:11)
2012-08-16T20:50:09+00:00应用程序[网站1]:at功能加载(模块js:266:25)
2012-08-16T20:50:09+00:00应用程序[网站1]:根据需要(模块js:348:19)
2012-08-16T20:50:09+00:00应用程序[web.1]:at对象。(/app/node_modules/express/node_modules/connect/lib/middleware/compress.js:14:12)
2012-08-16T20:50:09+00:00应用程序[web.1]:在模块处编译(模块js:404:26)
2012-08-16T20:50:09+00:00应用程序[web.1]:at Object..js(module.js:410:10)
2012-08-16T20:50:09+00:00应用程序[web.1]:位于Module.load(Module.js:336:31)
2012-08-16T20:50:09+00:00应用程序[web.1]:at功能加载(模块js:297:12)
2012-08-16T20:50:09+00:00应用程序[网站1]:根据需要(模块js:348:19)
2012-08-16T20:50:09+00:00应用程序[web.1]:在Object.compress(/app/node_modules/express/node_modules/connect/lib/connect.js:89:14)
2012-08-16T20:50:11+00:00 heroku[web.1]:进程已退出,状态为1
2012-08-16T20:50:11+00:00 heroku[web.1]:状态从开始更改为崩溃

事实证明,express摆脱了对zlib的依赖,因此您必须将zlib(版本“1.0”)添加到/development/web下的package.json中


更新:这在1.4.11版中已修复

这在Forge平台的1.4.11版中已修复:


谢谢你的报道

谢谢Chris,当问题解决后,我们会在这里报告,因此您不需要执行此手动解决方法