问题描述
我刚刚创建了一个新的应用程序(v0.1.12),并注意到引用的Ember版本是v1.8.1(bower.json)。我想获得我的项目的好。我需要采取哪些步骤? (我是Ember的新手,Ember-CLI,Bower& NPM。)
I've just created a new Ember-CLI app (v0.1.12), and noticed that the referenced version of Ember is v1.8.1 (bower.json). I'd like to get the recently released 1.10 goodness in my project. What steps do I need to take to do this? (I'm new to Ember, Ember-CLI, Bower & NPM.)
推荐答案
根据
您可以按照以下步骤执行此操作:
You can do this by following the steps below:
1)删除您的 bower_components
文件夹
2)运行 bower install --save ember#beta
获取最新的Ember测试版(您可以指定版本,如果你想要一个特定的版本)
2) run bower install --save ember#beta
to get the latest beta of Ember (you can specify the version if you want a specific version)
3)运行 bower install
重新安装保升依赖关系
3) run bower install
to reinstall your bower dependencies
4)卸载handlebars: npm uninstall - -save-dev broccoli-ember-hbs-template-compiler
4) Uninstall handlebars: npm uninstall --save-dev broccoli-ember-hbs-template-compiler
5)Inst所有HTMLbars: npm install --save-dev ember-cli-htmlbars
5) Install HTMLbars: npm install --save-dev ember-cli-htmlbars
这篇关于在Ember-CLI中升级Ember的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!