TypeError: The “digest” argument is required and must not be undefined

前端 未结 2 1395
萌比男神i
萌比男神i 2021-02-20 13:24

I am getting subject error while registering a simple Mean Application through http://localhost:3000/auth/register, that I have simply created using mean init comma

2条回答
  •  梦谈多话
    2021-02-20 13:32

    Per the crypto.pbkdf2Sync method you are missing the final argument which is digest, thus the error being displayed.

    crypto.pbkdf2

    Also with further investigation you can see that the digest argument was required in Node v6.0.

    The previous default seems to have been 'sha1'.

提交回复
热议问题