求大神指教ldapauth的使用
发布于 19小时前 作者 CarlosRen 56 次浏览 来自 问答

请教个问题

因为开发需要,要走AD认证,网上查了一下,需要用到ldapauth,在装这个ldapauth的时候,出现了一个很奇怪的问题

先是报错说缺包,我装的dependency里的三个包: bcrypt lru-cache ldapjs 然后报错说bcrypt编译失败, 传送门这篇帖子说因为版本的问题,应该装0.8以上的,我的报错信息里也的确显示的是0.7.5的bcrypt 删除所有旧的依赖 用npm install [email protected]重装 再重装lru-cache和ldapjs

npm ERR! [email protected] install: `node-gyp rebuild`  //警察蜀黍就是这里,他还是在用0.7.5在编译
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/carlos/workspace/nodejs/itsys/npm-debug.log
carlos@carlos-virtual-machine:~/workspace/nodejs/itsys$ npm ls
[email protected] /home/carlos/workspace/nodejs/itsys
├── [email protected]  //这里是执行npm install [email protected]装成功了啊

HELP!!

回到顶部