【问题标题】:bundle of meteor build not responding捆绑流星构建没有响应
【发布时间】:2015-02-02 08:14:14
【问题描述】:

尝试使用流星构建来构建节点包。但是,当我执行node main.js 时,终端没有打印出任何内容。我的流星版本是 1.0.3.1。详细步骤如下。

~/misc$ meteor create foo
foo: created.     

To run your new app:                          
  cd foo                                      
  meteor

~/misc$ cd foo/
~/misc/foo$ meteor build ~/misc/meteor_build2/ --directory
~/misc/foo$ cd ../meteor_build2
~/misc/meteor_build2$ cd bundle/programs/server/
~/misc/meteor_build2/bundle/programs/server$ npm install
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

> fibers@1.0.1 install /home/chihchengliang/misc/meteor_build2/bundle/programs/server/node_modules/fibers
> node ./build.js

`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
underscore@1.5.2 node_modules/underscore

semver@4.1.0 node_modules/semver

fibers@1.0.1 node_modules/fibers

eachline@2.3.3 node_modules/eachline
└── type-of@2.0.1

source-map-support@0.2.8 node_modules/source-map-support
└── source-map@0.1.32 (amdefine@0.1.0)

chalk@0.5.1 node_modules/chalk
├── escape-string-regexp@1.0.2
├── ansi-styles@1.1.0
├── supports-color@0.2.0
├── strip-ansi@0.3.0 (ansi-regex@0.2.1)
└── has-ansi@0.1.0 (ansi-regex@0.2.1)

~/misc/meteor_build2/bundle/programs$ cd ..
~/misc/meteor_build2/bundle$ ROOT_URL=http://example.com/ node main.js 

然后我只得到一个闪烁的指针,没有任何其他反应。

【问题讨论】:

  • 看看here
  • 不工作。我按照步骤安装 bcrypt 不工作。
  • 你遇到了什么错误?
  • 我已经解决了。 ROOT_URL=http://localhost PORT=3000 根 url 和端口必须分开。终端不会打印任何内容,但可以在浏览器上看到结果。感谢您回答 Ethaan。

标签: node.js meteor build bundle


【解决方案1】:

按照上面的@user2754799 评论,使用ROOT_URL=http://localhost PORT=3000 运行它。

我有同样的问题,几乎没有检查这个问题,因为它没有答案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-02-14
    • 1970-01-01
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 1970-01-01
    • 2014-12-18
    • 2014-02-02
    相关资源
    最近更新 更多