ilijamt / express-jwt-auth-mongoose

Authentication is part of almost every system, even if it is in node.js, Express, Angular.JS, PHP, Perl, Ruby, or any other languages you are using. Dealing with authentication is a must for most of the systems.
60 stars 27 forks source link

throws error #3

Open suriyaJaay opened 7 years ago

suriyaJaay commented 7 years ago

it has throws me following error

F:\1.Angular_API_Execersie\express-jwt-auth-mongoose-master>node create_user.js demo demo { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version Username: demo Password: demo Creating a new user in Mongo Mongoose: users.ensureIndex({ username: 1 }) { unique: true, background: true, safe: undefined } Mongoose connected to the database Mongoose: users.insert({ password: '$2a$10$H6yB3VPh3ccJCP7aLSnkcuP1tVttCpuAzKhSqpDp688ZSwVOK/vlO', username: 'demo', _id: ObjectId("5805b0eb 6624df6c11db74f8"), v: 0 }) {} { v: 0, password: '$2a$10$H6yB3VPh3ccJCP7aLSnkcuP1tVttCpuAzKhSqpDp688ZSwVOK/vlO', username: 'demo', _id: 5805b0eb6624df6c11db74f8, id: '5805b0eb6624df6c11db74f8' }

F:\1.Angular_API_Execersie\express-jwt-auth-mongoose-master>node app.js { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version Mongoose: users.ensureIndex({ username: 1 }) { unique: true, background: true, safe: undefined }

ilijamt commented 7 years ago

I don't know about windows, maybe you should try it out on linux?

SandySJadhav commented 6 years ago

capture

Throws this error while npm install When tried node-gyp command, it shows following error

capture