Installing
-
Okay, I figured out how to shutdown the redis instance so ignore the top part of my last question.
But I am still having issues with bcrypt. The readout when I do "npm install" says there's a problem with bcrypt itself and you can see what happens when I try running the code. How do I get around this?
$ node app.js
info: NodeBB v0.2.1 Copyright (C) 2013 DesignCreatePlay Inc.
info: This program comes with ABSOLUTELY NO WARRANTY.
info: This is free software, and you are welcome to redistribute it under certain conditions.
info:
info: Initializing NodeBB v0.2.1, on port 4567, using redis store at 127.0.0.1:6379.
info: NodeBB instance bound to: Any address (0.0.0.0)
warn: Couldn't find convert. Did you install imagemagick?/Users/aaronclaytondunn/Documents/WebDev/nodebb/nodebb1/nodebb/node_modules/redis/index.js:535
throw err;
^
Error: Cannot find module 'bcrypt'
at Function.Module._resolveFilename (module.js:331:15)
at Function.Module._load (module.js:273:25)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/Users/aaronclaytondunn/Documents/WebDev/nodebb/nodebb1/nodebb/src/user.js:1:76)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17) -
CentOS users have also reported problems installing bcrypt.
Try installing this instead, and let us know if it works?
GitHub - shaneMangudi/bcrypt-nodejs: Native implementation of bcrypt for NodeJS
Native implementation of bcrypt for NodeJS. Contribute to shaneMangudi/bcrypt-nodejs development by creating an account on GitHub.
GitHub (github.com)
-
When you update it, you'll have to do this fix as well: https://github.com/shaneGirish/bcrypt-nodejs/issues/11