TypeError: crypto.createPrivateKey is not a function
问题 I am running into this error when trying to login with node. error: TypeError: crypto.createPrivateKey is not a function When I researched it appears that I need to be on version v.11.+ of node, not v.10.+ However, when I upgrade to node 11, the error is still there. I have uninstalled node completely, cleared npm cache, and reinstalled... yet that didn't work either. export const InitializeJWT = async (): Promise<void> => { const password = crypto.pseudoRandomBytes(25).toString('base64');