1

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

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

4

2 回答 2

2

请升级到 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
cd 重新安装Meteor 到我的应用程序目录

meteor rebuild
meteor reset

重新安装您添加
的任何软件包运行应用程序

meteor
于 2017-02-02T06:08:39.887 回答
0

当我构建捆绑包时没有指定我为其部署它的目标架构时,我遇到了这个问题。我正在使用 Windows 操作系统为 linux 部署服务器创建捆绑包。例如,如果您的目标是 linux 部署服务器,则使用以下命令

meteor build --directory build --server-only --architecture os.linux.x86_64

于 2020-02-13T03:51:00.010 回答