如何使用Polymer-CLI安装Polymer 1.x模板 [英] How to install Polymer 1.x templates with polymer-cli

查看:85
本文介绍了如何使用Polymer-CLI安装Polymer 1.x模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行polymer init时,它仅显示V2模板,但我想要V1.如何安装Polymer 1.x应用程序/元素模板?

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

推荐答案

有一个未解决的问题(

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

这将允许在运行polymer init时列出1.x模板.

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

这篇关于如何使用Polymer-CLI安装Polymer 1.x模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆