我刚刚将linux上的聚合物cli更新为最新发布的版本1.0.0 (由聚合版本命令确认)。然而,当我使用cli来建立一个新的聚合-2-应用程序项目时,bower.json文件仍然指向2.0.0-rc.3版本的聚合物和其他预2.0版本的候选依赖项。
{
"name": "temp",
"main": "index.html",
"dependencies": {
"polymer": "Polymer/polymer#^2.0.0-rc.3"
},
"devDependencies": {
"web-component-tester": "^6.0.0-prerelease.5",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.7"
}
}
如何使聚合-cli使用新发布的稳定2.0.0版本?
发布于 2017-05-16 16:01:39
我不相信你真的在寻找polymer-cli
更新。polymer-cli
是从终端运行的,具有构建、链接、服务等命令。目前的CLI版本为1.0.0。
若要更新CLI使用,npm i -g polymer-cli
我相信你真正想要的是聚合物库,它在前几天被标记为稳定的2.0.0。您可以更新bower.json
中的行,以指向^2.0.0
而不是^2.0.0-rc.3
。看看你可能应该做的其他依赖项更新的聚合物启动工具包。https://github.com/PolymerElements/polymer-starter-kit/blob/2.0-preview/bower.json
如果你不想看一眼..。
{
"name": "temp",
"main": "index.html",
"dependencies": {
"polymer": "Polymer/polymer#^2.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0"
},
"devDependencies": {
"web-component-tester": "^6.0.0"
}
}
发布于 2017-05-16 14:30:55
你需要运行npm install -g polymer-cli@next
,而不是普通的聚合物-cli。
更多信息可以在这里找到:https://www.polymer-project.org/2.0/docs/upgrade
https://stackoverflow.com/questions/44011323
复制相似问题