Ember-cli not installing on ubuntu

I’m trying to install ember-cli on ubuntu and get the following:

$ sudo npm install -g ember-cli
npm http GET https://registry.npmjs.org/ember-cli
npm http 304 https://registry.npmjs.org/ember-cli
npm http GET https://registry.npmjs.org/ember-cli/-/ember-cli-0.2.3.tgz
npm http 200 https://registry.npmjs.org/ember-cli/-/ember-cli-0.2.3.tgz

It appears to download, but then does nothing after that, no errors. I do not have any previous install. I tried to uninstall and clear npm cache, no help. How do I debug this? I have successfully installed other npm packages such as bower and phantomjs.

npm version: 2.8.4 node version: 0.10.38

I have found the issue. I am using Vagrant and the default VM image is apparently setup for cloud computing, and thus no swap space is allocated. This was causing npm to silently fail on install.

Good to know you resolved it. Btw, what is your host OS?