无法找到npm模块' meteor-deque'

时间:2015-10-30 14:01:51

标签: meteor modulus.io

我正在尝试在Modulus上部署我的meteor应用程序,但我在控制台上收到了这些错误

Error: Can't find npm module 'meteor-deque'. Did you forget to call 'Npm.depends' in package.js within the 'meteor' package?
at Object.Npm.require (/mnt/app/bundle/programs/server/boot.js:175:17)
at Meteor.startup (packages/meteor/fiber_helpers.js:17:1)
at /mnt/app/bundle/programs/server/packages/meteor.js:816:4
at /mnt/app/bundle/programs/server/packages/meteor.js:1274:3
at /mnt/app/bundle/programs/server/boot.js:242:10
at Array.forEach (native)
at Function._.each._.forEach (/mnt/app/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /mnt/app/bundle/programs/server/boot.js:137:5

npm ERR! Linux 3.13.0-46-generic
npm ERR! argv "node" "/mnt/app/.modulus/nvm/v0.10.40/bin/npm" "start"
npm ERR! node v0.10.40
npm ERR! npm  v3.3.10
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle@0.0.0 start: `node ../../main`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the meteor-dev-bundle@0.0.0 start script 'node ../../main'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ../../main
npm ERR! You can get their info via:
npm ERR!     npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.

我的节点版本是0.10.4 我的流星版本是1.2.1

2 个答案:

答案 0 :(得分:1)

请升级到Meteor 1.4.2.3(最新版)并安装babel-runtime NPM(因为Meteor 1.4.2.1不再提供自己的babel功能):

cd /your/app/directory
meteor update
meteor npm install babel-runtime --save
meteor

如果仍有问题,请尝试重置Meteor:

meteor reset

如果仍然有问题,请重新安装Meteor:

从meteor.com重新安装Meteor
  cd到我的app目录

meteor rebuild
meteor reset

重新安装您添加的所有套餐 运行应用

meteor

答案 1 :(得分:0)

在构建捆绑包时未指定要为其部署的目标体系结构时遇到了这个问题。我使用Windows操作系统为Linux部署服务器创建捆绑包。 例如,如果您以linux部署服务器为目标,则使用以下

流星构建-目录构建-仅限服务器-体系结构os.linux.x86_64