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
mean init
Per the crypto.pbkdf2Sync method you are missing the final argument which is digest, thus the error being displayed.
crypto.pbkdf2Sync
digest
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'.
'sha1'