Meteor代码不能在ec2上工作



我从我的dev meteor项目目录创建了tar.gz文件,该文件在我的本地机器上工作,但tar.gz的提取不能在ec2上工作。显示如下错误:

W20150815-19:56:58.515(0)? (STDERR) 
W20150815-19:56:58.516(0)? (STDERR) /home/ubuntu/.meteor/packages/meteor-tool/.1.1.3.1md4rq1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150815-19:56:58.517(0)? (STDERR)                         throw(ex);
W20150815-19:56:58.518(0)? (STDERR)                               ^
W20150815-19:56:58.522(0)? (STDERR) Error: Cannot find module 'elasticsearch'
W20150815-19:56:58.522(0)? (STDERR)     at Function.Module._resolveFilename (module.js:338:15)
W20150815-19:56:58.522(0)? (STDERR)     at Function.Module._load (module.js:280:25)
W20150815-19:56:58.522(0)? (STDERR)     at Module.require (module.js:364:17)
W20150815-19:56:58.522(0)? (STDERR)     at require (module.js:380:17)
W20150815-19:56:58.522(0)? (STDERR)     at Object.Npm.require (/home/ubuntu/snapstall/.meteor/local/build/programs/server/boot.js:130:18)
W20150815-19:56:58.523(0)? (STDERR)     at app/server/elastic.js:1:60
W20150815-19:56:58.523(0)? (STDERR)     at app/server/elastic.js:59:3
W20150815-19:56:58.523(0)? (STDERR)     at /home/ubuntu/snapstall/.meteor/local/build/programs/server/boot.js:222:10
W20150815-19:56:58.523(0)? (STDERR)     at Array.forEach (native)
W20150815-19:56:58.523(0)? (STDERR)     at Function._.each._.forEach (/home/ubuntu/.meteor/packages/meteor-tool/.1.1.3.1md4rq1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)

应用程序的所有npm依赖项都在package.json中声明,位于bundle的programs/server子目录下。要确保它们都被解析了,你需要运行

npm install

在解压归档文件后放到子目录中。

没有自动完成的原因是有一个较小的包大小,并确保npm安装的二进制文件(如果有的话)与你的目标系统架构匹配,这可能不一定与你创建包的那个相同。

最新更新