按照以下链接中提到的步骤操作:-
尽管网站中提到的所有前面的步骤都运行良好,但运行polymerserve
不起作用。
当我运行polymerserve
时,它显示如下内容:-
C:\Users\ama16\Desktop\polymer-first-elements>polymer serve
Node Commands
Syntax:
node {operator} [options] [arguments]
Parameters:
/? or /help - Display this help message.
list - List nodes or node history or the cluster
listcores - List cores on the cluster
view - View properties of a node
online - Set nodes or node to online state
offline - Set one or more nodes to the offline state
For more information about HPC command-line tools,
see http://go.microsoft.com/fwlink/?LinkId=120724.
和http://localhost:8080/components/icon-toggle/demo/ :- 无法访问网站
最佳答案
我认为您未能安装polymer-cli。
如果您成功安装polymer-cli
npm install -gpolymer-cli
,
然后输出
npm -g list --深度=0
应该像下面这样。
$ npm -g 列表 --深度=0
C:\Users\tom\AppData\Roaming\npm
~~(包裹 list )~~
+-- polymer -cli@1.9.10
~~(包裹 list )~~
关于javascript - polymer 服务不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40155634/