Rob Allsopp
Rob Allsopp

Reputation: 3518

Install bcrypt without Visual Studio

I'm trying to install bcrypt via npm and I'm getting a Failed at the [email protected] install script. error.

I'm on Windows 8 x64, node ver 0.10.29.

Looking at bcrypt's dependencies tells me I need node-gyp, which apparently needs visual studio 2012 and python. For real? Do I really need to install a full IDE that I'm not going to use for this one node module?

Is it the compiler node-gyp is after, or some other small component from VS I can install that will do the trick?

Would love any suggestions for how to get this working with minimum possible extras.

Upvotes: 2

Views: 2595

Answers (1)

mscdex
mscdex

Reputation: 106696

As previously mentioned, you can install VC++ Express (and the Windows SDK) for free. However, if you are really that bothered by it, you could use a bcrypt API-compatible module that is implemented in pure javascript, however you will see a performance hit.

I should also note that there are many (useful) modules on npm right now that require compilation, so chances are you'll be getting more use out of the compiler (in the future) than you think.

Upvotes: 4

Related Questions