I have an application that uses the node twit module, which is accessible through
npm install twit
I deployed the node module locally from .meteor / local / assemblies / server /
So it is visible on .meteor / local / assemblies / server / node_modules / cretin
I tried to install it in the root of the project, but the project did not find the module. This led me to the solution described above.
My application now works fine locally. I can run and do everything and interact with Twitter from the Meteor server side or from the client side, depending on what I want to do. No glitches.
When I deploy to meteor.com through the team
meteor deploy [appname] --password
The application is successfully deployed.
When I try to access (anonistream.meteor.com) (anonistream.meteor.com) from the browser, it fails and the logs contain this error.
[Mon May 07 2012 01:59:53 GMT+0000 (UTC)] WARNING node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'twit' at Function._resolveFilename (module.js:332:11) at Function._load (module.js:279:25) at Module.require (module.js:354:17) at require (module.js:370:17) at app/server/server.js:2:12 at /meteor/containers/84162a7c-24e8-bf26-6fd8-e4ec13b2a935/bundle/server/server.js:111:21 at Array.forEach (native) at Function.<anonymous> (/meteor/containers/84162a7c-24e8-bf26-6fd8- e4ec13b2a935/bundle/server/underscore.js:76:11) at /meteor/containers/84162a7c-24e8-bf26-6fd8-e4ec13b2a935/bundle/server/server.js:97:7 [Mon May 07 2012 01:59:53 GMT+0000 (UTC)] INFO STATUS running -> waiting [Mon May 07 2012 01:59:53 GMT+0000 (UTC)] ERROR Application crashed with code: 1 [Mon May 07 2012 02:29:55 GMT+0000 (UTC)] INFO HIT / 24.94.158.145 [Mon May 07 2012 02:29:59 GMT+0000 (UTC)] INFO HIT /favicon.ico 24.94.158.145 [Mon May 07 2012 02:30:46 GMT+0000 (UTC)] INFO HIT / 24.94.158.145 [Mon May 07 2012 02:30:50 GMT+0000 (UTC)] INFO HIT /favicon.ico 24.94.158.145
Does anyone have any suggestions on how to do this?
meteor
Steeve Cannon May 7 '12 at 2:55 a.m. 2012-05-07 02:55
source share