L
L
likejavascript2012-01-09 12:41:28
Node.js
likejavascript, 2012-01-09 12:41:28

nodejs + bcrypt

Hello. Has anyone encountered such a problem. I want to use bcrypt in Nodejs application (under Win7). I connect it as usual:

var bcrypt = require('bcrypt');

However, when running node server.js, it gives an error:
Cannot find module './build/Release/bcrypt_lib'

I understand that before using bcrypt, it must first be compiled, but can this be done under Win? or are there any ready made builds?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mithgol, 2012-01-12
@Mithgol

Since Node.js under raw Windows (without cygwin) appeared only in November 2011, a significant part of the modules for Node.js still rely on inertia that users use Linux or Mac OS X. This is especially true for those modules that involve compiling libraries. Such modules generally do not distribute ready-made builds under Windows and are not amenable (without hard work, I mean) to be recompiled under Windows. Binding to non-windows at every turn. For starters, bcrypt's Makefile relies on the existence of the  rm command , which Windows doesn't have.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question