错误:无法找到身份验证方法waterlock-local-auth。

时间:2015-06-24 16:33:04

标签: npm sails.js waterlock

即使在一次又一次手动运行sails lift后尝试npm install waterlock-local-auth,我仍然遇到此错误

info: Starting app...

/backend-api/node_modules/waterlock/lib/methods.js:112
      throw error;
            ^
Error: Authentication method waterlock-local-auth could not be found. 
Try running npm install waterlock-local-auth


    at Object._errorHandler (/backend-api/node_modules/waterlock/lib/methods.js:109:19)
    at Object._handleObjects (/backend-api/node_modules/waterlock/lib/methods.js:54:14)
    at Object.collect (/backend-api/node_modules/waterlock/lib/methods.js:33:19)
    at new Waterlock (/backend-api/node_modules/waterlock/lib/waterlock.js:19:50)
    at Object.<anonymous> (/backend-api/node_modules/waterlock/lib/index.js:8:22)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/backend-api/node_modules/waterlock/index.js:6:18)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

2 个答案:

答案 0 :(得分:0)

最终成为bcrypt我将版本号更改为1.8.3而不是1.8.1

https://github.com/waterlock/waterlock-local-auth/pull/36

答案 1 :(得分:0)

有关

  

错误:无法找到身份验证方法waterlock-local-auth。

尝试运行npm install waterlock-local-auth