I want to view this demo of Polymerfire in my browser .
我希望在我的浏览器中看到该演示 . 相反,我看到一个空白页面和以下控制台错误 .
console.log.error.message
GET http:// localhost:8080/404(未找到)导航到http:// localhost:8080 /
我使用了以下程序:
-
I installed the Polymer-CLI multi-tool per the instructions found here .
-
我将项目命名为
my-app
. -
我使用CLI安装了这里找到的Github仓库:
bower install ---save firebase/polymerfire
-
我打开终端并导航到应用程序的根目录 .
cd path/to/my-app
-
I ran the following Polymer-CLI command (per the instructions found here) .
polymer serve
我可以做些什么来尝试解决这个问题,以便在浏览器中看到演示版本?
2 回答
运行元素演示的最佳方法是检查它...
我从未试图从bower install'd文件夹运行演示,但是,上述方法将起作用 .
您还必须导航到正确的localhost路径:
http://localhost:8080/components/polymerfire/demo/
所以完整的程序(从命令行)是:
首先,install the polymer-cli per the instructions found here .
然后运行以下命令 .
shell.sh