installing ember-cli on ubuntu. ember new app fails silently

可紊 提交于 2019-12-12 04:09:00

问题


I am planing to switch my ember development to ubuntu 12.04. I am new to it. It seems I have installed node and ember-cli properly, but ember new a does not do anything and fails silently.

rigel@ rigel:/$ ember --version
0.2.8
rigel@rigel:/$ npm--version
1.4.23
rigel@ rigel:/$ node -v
v0.10.31
rigel@rigel:/$ember new a
rigel@ rigel:/$

The above mentioned information might be less than is needed to troubleshoot the problem, but I need some pointers to figure out what else I should be looking at.


回答1:


Looks like you installed ember-tools instead of ember-cli.

Make sure you get rid of ember-tools:

npm uninstall -g ember-tools

and make sure you have the latest version of ember-cli installed:

npm install -g ember-cli



回答2:


Your versions there (particularly for ember) are pretty old. I've found nvm to work pretty well to install node and its modules in your homedir, rather than relying on what the OS packages can provide.

$ nvm current
v0.11.13
$ node -v
v0.11.13
$ npm -v
2.0.0-alpha-5
$ ember --version
version: 0.0.40
node: 0.11.13
npm: 1.5.0-alpha-4


来源:https://stackoverflow.com/questions/25412290/installing-ember-cli-on-ubuntu-ember-new-app-fails-silently

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