4

I want to view this demo of Polymerfire in my browser.

I expect to see the demo run in my browser. Instead, I see a blank page and the following console error.

console.log.error.message

GET http://localhost:8080/ 404 (Not Found)
Navigated to http://localhost:8080/

I used the following procedure:

  1. I installed the Polymer-CLI multi-tool per the instructions found here.
  2. I created a project using the Polymer Starter Kit (PSK).
  3. I named the project my-app.
  4. I installed the Github repo found here using the CLI:
    bower install ---save firebase/polymerfire
  5. I opened the terminal and navigated to the app's root directory.
    cd path/to/my-app
  6. I ran the following Polymer-CLI command (per the instructions found here).
    polymer serve

What can I do to try and solve this so I can see the demo run in my browser?

4

2 回答 2

4

您还必须导航到正确的 localhost 路径:
http://localhost:8080/components/polymerfire/demo/

所以完整的过程(从命令行)是:

首先,按照此处的说明安装 polymer-cli

npm install -g bower
npm install -g polymer-cli

然后运行以下。

外壳程序
git clone https://github.com/firebase/polymerfire.git
cd polymerfire
bower install
polymer serve
open http://localhost:8080/components/polymerfire/demo/
于 2016-06-12T17:44:32.623 回答
4

运行元素演示的最佳方法是检查它...

git clone https://github.com/firebase/polymerfire.git

cd polymerfire

bower install

polymer serve

我从未尝试从 bower install'd 文件夹运行演示,但是,上述方法将起作用。

于 2016-06-12T17:02:22.377 回答