我已经在我的NodeApp中集成了“ emailjs ”,它可以正常运行本地。
当我将NodeApp推送到Heroku时,我收到此错误,我似乎无法找到错误。 希望有人可以提供帮助
这是错误:
2012-11-01T15:24:28+00:00 app[web.1]: ^
2012-11-01T15:24:28+00:00 app[web.1]: Error: Cannot find module 'bufferjs/concat'
2012-11-01T15:24:28+00:00 app[web.1]: at Function._resolveFilename (module.js:337:11)
2012-11-01T15:24:28+00:00 app[web.1]: at Object..js (module.js:464:10)
2012-11-01T15:24:28+00:00 app[web.1]: at Module.load (module.js:353:31)
2012-11-01T15:24:28+00:00 app[web.1]: at Function._load (module.js:311:12)
2012-11-01T15:24:28+00:00 app[web.1]: at Module.require (module.js:359:17)
2012-11-01T15:24:28+00:00 app[web.1]:
2012-11-01T15:24:28+00:00 app[web.1]: at Function._load (module.js:279:25)
2012-11-01T15:24:28+00:00 app[web.1]: at Module.require (module.js:359:17)
2012-11-01T15:24:28+00:00 app[web.1]: at require (module.js:375:17)
2012-11-01T15:24:28+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/emailjs/smtp/message.js:17:4)
2012-11-01T15:24:28+00:00 app[web.1]: at Module._compile (module.js:446:26)
2012-11-01T15:24:30+00:00 heroku[web.1]: Process exited with status 1
2012-11-01T15:24:30+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-01T15:24:31+00:00 heroku[router]: Error H10 (App crashed) -> GET jeppestrom.dk/ dyno= queue= wait= service= status=503 bytes=
2012-11-01T15:24:31+00:00 heroku[nginx]: 90.185.25.178 - - [01/Nov/2012:15:24:31 +0000] "GET / HTTP/1.1" 503 601 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" jeppestrom.dk
2012-11-01T15:24:32+00:00 heroku[router]: Error H10 (App crashed) -> GET jeppestrom.dk/favicon.ico dyno= queue= wait= service= status=503 bytes=
2012-11-01T15:24:32+00:00 heroku[nginx]: 90.185.25.178 - - [01/Nov/2012:15:24:32 +0000] "GET /favicon.ico HTTP/1.1" 503 601 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" jeppestrom.dk
2012-11-01T15:24:24+00:00 heroku[web.1]: State changed from crashed to down
My package.json:
{
"name":"app.js",
"version":"0.1.0",
"engines": {
"node": "0.6.x",
"npm": "1.0.x"
},
"dependencies": {
"express":"2.5.9",
"jade":"0.26.1",
"emailjs":"*"
}
}
非常感谢。