I have installed Titanium onto my mac and now when ever I try to globally install any npm packages it fails.
The output from my install is
npm http 304
Try typing:
npm set prefix /usr/local
Then installing again.