How to install Polymer 1.x templates with polymer-

2019-01-27 05:40发布

When I run polymer init, it only shows V2 templates, but I want V1. How do I install Polymer 1.x application/element templates?

1条回答
Explosion°爆炸
2楼-- · 2019-01-27 06:00

There's a pending issue (polymer-cli Issue #804) to restore the 1.x templates. In the meantime, you can manually install them with:

npm i -g justinfagnani/generator-polymer-init-polymer-1-element \
         justinfagnani/generator-polymer-init-polymer-1-application

This will allow the 1.x templates to be listed when running polymer init.

查看更多
登录 后发表回答