Can't install ionic via npm without sudo on MacOS

Hi,

I need to build app on MacOS in my school, where I can’t use sudo and I have to install everything to my home directory. There were no problems with cordova installation. In Ionic case, npm hangs on : “extract:acorn → gunzTarPe”.

Questions:

  1. Can I install Ionic without sudo somehow, or even without npm?
  2. If not, can I build app developed in Ionic only with Cordova somehow?

See this post: http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/