My preference on Ubuntu and OS X is to just use NVM.
As noted in the sticky: Npm Debugging Guidelines (Failed npm install, bower install, or gulp build? Read this)