Mup部署 - js-bson:使用纯JS版本无法加载c ++ bson扩展

时间:2015-12-08 09:13:55

标签: meteor deployment meteor-up

尝试在Meteor Up的帮助下将我的meteorJS应用程序部署到Ubuntu 14.04下的数字海洋水滴

mup init是成功的但是当我部署时我有:

 -----------------------------------STDERR-----------------------------------
    npm WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    js-bson: Failed to load c++ bson extension, using pure JS version
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused
    Latest deployment failed! Reverted back to the previous version.
    -----------------------------------STDOUT-----------------------------------
    /ansi-styles

    chalk@0.5.1 node_modules/chalk

    escape-string-regexp@1.0.3 node_modules/escape-string-regexp

    strip-ansi@0.3.0 node_modules/strip-ansi

    has-ansi@0.1.0 node_modules/has-ansi

    supports-color@0.2.0 node_modules/supports-color

    eachline@2.3.3 node_modules/eachline

    type-of@2.0.1 node_modules/type-of

    amdefine@1.0.0 node_modules/amdefine

    asap@2.0.3 node_modules/asap

    underscore@1.5.2 node_modules/underscore

    meteor-promise@0.5.0 node_modules/meteor-promise

    promise@7.0.4 node_modules/promise

    source-map-support@0.3.2 node_modules/source-map-support

    semver@4.1.0 node_modules/semver

    source-map@0.1.32 node_modules/source-map

    fibers@1.0.5 node_modules/fibers
    Waiting for MongoDB to initialize. (5 minutes)
    { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
    connected
    admin stop/waiting
    admin start/running, process 14399
    Waiting for 30 seconds while app is booting up
    Checking is app booted or not?
    admin stop/waiting
    admin start/running, process 14542
    ----------------------------------------------------------------------------

配置:

 node -v
 v0.10.40

npm list bson
└── bson@0.4.20

我看到通过改变解决了很多问题 bson = require('../build/Release/bson');bson = require('../browser_build/bson');

但是我在哪里找到node_module?我的应用程序根目录下有一个目录,但是在这个目录中我甚至没有/build browser_build所以我不能尝试这个修复...

0 个答案:

没有答案