I am installing mongoose as an npm. I am getting back a bunch of errors. I did a npm install of npm install -g node-gyp from a post I read about with a similar problem.
It is complaining about the library lgcc_s.10.5 not existing on your system. You can see a similar issue with Homebrew here. If you are on Mac, then the proposed solution is to upgrade to XCode 7.