一堆流星生成无响应

时间:2015-02-02 08:14:15

标签: node.js meteor build bundle

尝试使用meteor build来构建节点包。但是,当我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 

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

1 个答案:

答案 0 :(得分:0)

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

我遇到了同样的问题,因为没有答案,所以几乎没有检查这个问题。

相关问题