聚合物初始化(无响应)

nho*_*yti 3 polymer

我按照聚合物教程的说明进行操作:

https://www.polymer-project.org/3.0/start/install-3-0

(我跳过了可选部分)

但是,在我执行了命令“polymer init”然后选择了一个特定的模板后,它什么也不做。

C:\Development>git --version
git version 2.17.1.windows.2

C:\Development>npm --version
6.1.0

C:\Development>node --version
v10.4.0

C:\Development>npm install -g polymer-cli
C:\Users\nhoyti\AppData\Roaming\npm\polymer -> C:\Users\nhoyti\AppData\Roaming\npm\node_modules\polymer-cli\bin\polymer.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\polymer-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ polymer-cli@1.7.3
updated 1 package in 8.945s

C:\Development>polymer --version
1.7.3

C:\Development>mkdir my-app

C:\Development>cd my-app

C:\Development\my-app>polymer init
'uname' is not recognized as an internal or external command,
operable program or batch file.
? Which starter template would you like to use? polymer-3-starter-kit
info: [init]    Running template polymer-3-starter-kit...
Run Code Online (Sandbox Code Playgroud)

这可能是什么问题?我尝试检查我创建的文件夹,但仍然是空的。

非常感谢提示和铅。

谢谢!

小智 9

我遇到了类似的问题polymer init,选择后没有反应。但是,我没有收到这条'uname' is not recognized...消息。

我尝试使用以下命令polymer init [selection]。这对我有用。我想要一个polymer-3-application,所以我使用了polymer init polymer-3-application.

此 Github 评论中找到了该信息。

这似乎类似于@mindon 的建议。