1
试图部署到heroku,似乎zlib模块播放不好。有任何想法吗?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-17 23:27:34