These days I’m developing a website in which I’d like to integrate OAuth login with Twitter and Facebook. It’s been developed with Node.js and MongoDB, so the choice was easy: everyoauth + mongoose-auth.
At this point, all seems to be so beautiful (as all seems to be in node.js world), but if you own a Mac, after trying to install mongoose-auth something with bcrypt will fail (npm install mongoose-auth).
I cannot reproduce the log message here, but I’ll post it when I try it in another Mac.
The point is, how can you solve it? The only easy way I found to do it was to install the XCode command line tools. I’m not a Mac expert, but, seriously, is it possible that this is the only way? (I don’t know, so you can tell me if you know other way)
So, to install it, open XCode, an click on XCode > Preferences > Downloads, and this screen will appear:
Now, just select Command Line Tools and you’ll be able to install mongoose-auth.
I hope you’ve enjoy this and that it’s helpful!