For God's sake use the node version manager. First, you need to wipe everything clean.
rm -rf ~/.npm ~/.nvm
Next, install the node version manager (NVM).
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.17.1/install.sh | bash
$ source ~/.nvm/nvm.sh
Add the source
command to your .profile
. Next, we install our favorite, stable version of node:
$ nvm install 0.12.2
$ nvm use 0.12.2
$ nvm alias default 0.12.2
Finally, we install Ember, Bower, and the rest.
$ npm install -g ember-cli
$ npm install -g bower
And now we can run Ember, Bower, etc., from the command line.