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