0

I am trying to start an ember tutorial. I'd swear I've used node and npm before, but not super recently. I installed with sudo npm install -g ember-cli (doing it as a user got me errors indicating I needed sudo) and didn't see any errors. But ember -v returns nothing. No error, just a new command prompt. Same with node --version. Synaptic says I'm running node version 1.4.21+ds-2(vivid).

What am I missing here? Why can't ember run or return errors?

Note, I'm seeing the same behavior as this question: installing ember-cli on ubuntu. ember new app fails silently

But with the added weirdness that even asking for the version fails.

Community
  • 1
  • 1
Amanda
  • 12,099
  • 17
  • 63
  • 91
  • did you install npm w/ sudo? If so ... can you brew install it instead (link to an OSX installer I use to setup new dev machines) https://github.com/toranb/osx-workstation/blob/master/installer#L26 – Toran Billups Jun 20 '15 at 00:42
  • I'm on Ubuntu. I installed `npm` with `apt-get` – Amanda Jun 20 '15 at 01:05
  • 2
    Are you sure you are running nodejs and not node? Check out this http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04. I usually remove node completely and add nodejs. – Kingpin2k Jun 20 '15 at 05:46
  • Try running `npm install -g --verbose ember-cli`. – Daniel Kmak Jun 20 '15 at 07:22

1 Answers1

1

So @Kingpin2k got it:

https://stackoverflow.com/a/18130296/233467

At some point long ago I tried to install with apt-get install node which installed node, aka Amateur Packet Radio Node. Not what I wanted. But that put "node" right there in my path.

So I purged node, and symlinked /usr/bin/node to /usr/bin/nodejs and installed ember again. This time it seems to be there.

Community
  • 1
  • 1
Amanda
  • 12,099
  • 17
  • 63
  • 91