error: bcrypt 无法安装
npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
2016-03-24
最赞回答 / bintbj
bingo,确实是版本问题,bcrypt-nodejs的hash函数要求4个参数,而老版是3个参数,怪不得会报缺失回调函数。user.js这样改<...code...>
2016-03-22
最赞回答 / 慕田峪7990199
<...图片...>试试移动app.js中require("./config/routes")(app)这条语句到下方去。认为在app方法调用之后,再作为参数传递出去
2016-03-15
已采纳回答 / kevinliang
如果在admin下面跳转时(redirect('list'))没有加(redirect('/list'))这个根路径斜杠那就是在admin的下面寻找。所以要加 /。
2016-03-08
仁兄人才啊!!select user passworld from userName where user=用户的密码,返回错误或者{user:用户的密码,passworld:用户的账号}在进行匹配该对象的密码就行啦!!都让你想出这么多函数来!
2016-02-29