Seems like I messed up with my ember-cli install. I had installed the npm using sudo, but after reading some issues with ember-cli and sudo on npm I went for uninstall and reinstall following the instruction here https://gist.github.com/isaacs/579814.
Now I have installed ember-cli through npm install -g ember-cli
but when I do an ember new <name>
I get
No command 'ember' found, did you mean:
Command 'enber' from package 'asn1c' (universe)
ember: command not found
I can do which node
$ which node
/home/[user]/local/bin/node
and which npm
$ which npm
/home/[user]/local/bin/npm
, but I can see that ember exists in the following path that is installed:
npm install -g ember-cli
/home/[user]/npm/bin/ember -> /home/[user]/npm/lib/node_modules/ember-cli/bin/ember
Any ideas how to get ember command working?