Open suriyaJaay opened 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 }
I don't know about windows, maybe you should try it out on linux?
Throws this error while npm install When tried node-gyp command, it shows following error
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 }