bnoguchi / mongoose-auth

User authentication plugin for mongoose nodejs orm
https://github.com/bnoguchi/mongoose-auth
740 stars 113 forks source link

Doesn't install out-of-the-box on Windows (without cygwin) #100

Open jsalonen opened 12 years ago

jsalonen commented 12 years ago

I know this is a problem with an upstream package, but I want to report it nonetheless.

Mongoose-auth doesn't install out-of-the-box on Windows (without cygwin). With:

npm install mongoose-auth

I get:

'make' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! error installing bcrypt@0.5.0
npm ERR! error installing mongoose-auth@0.0.12

See associated issue (71) on node.bcrypt.js (https://github.com/ncb000gt/node.bcrypt.js/issues/71)

OClement commented 12 years ago

Trying to get this package installed on a windows machine, and of course I get this problem. I installed Cygwin and now I can run make, but only through the Cygwin terminal, where NPM is not available.

How should we get around this problem?

jsalonen commented 12 years ago

Only password authentication is dependent on bcrypt (lib/modules/password/plugin.js). If we don't use password authentication, I guess it would be ok to just omit bcrypt. In the long run, I hope node.bcrypt.js will be fixed to work on Windows (wihtout cygwin).

jsalonen commented 12 years ago

Question: why do you need to use bcrypt in the first place? Doesn't node.js's build-in Crypt module provide sufficient functions?