How to install Polymer 1.x templates with polymer-cli

不问归期 提交于 2019-11-28 06:13:46

问题


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:


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.



来源:https://stackoverflow.com/questions/50042699/how-to-install-polymer-1-x-templates-with-polymer-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!