我按照 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...
这可能是什么问题?我尝试检查我创建的文件夹,但仍然是空的。
非常感谢提示和线索。
谢谢!
最佳答案
我遇到了类似的问题,polymer init
在选择后没有响应。但是,我没有收到 'uname' is not recognize...
消息。
我尝试使用以下命令polymer init [selection]
。这对我有用。我想要一个polymer-3-application
,所以我使用了polymer initpolymer-3-application
。
在 this Github comment 中找到该信息.
这似乎与 @mindon 的建议类似。
关于 polymer 初始化(无响应),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50848598/