ethereumjs/keythereum

TypeError: crypto.randomBytes is not a function TypeError: crypto.randomBytes is not a function

ymphyow opened this issue · 3 comments

Hello! Good day!.

, I tried the below link for login authentication :
https://auth0.com/docs/quickstart/native/ionic3/01-login.

I am facing the crypto issue “TypeError: crypto.randomBytes is not a function
TypeError: crypto.randomBytes is not a function”.
Then, I try to solve the issue with following link :slight_smile:https://stackoverflow.com/questions/47486774/crypto-randombytes-is-not-a-function-in-angular

But, I am stuck on the console error such as below :
Error: ENOENT: no such file or directory, open ‘C:\Users\username\Documents\ionic\Cabling\cabling2\node_modules[PACKAGE_ERROR][FILE_ERROR]’
errno: -4058,
code: ‘ENOENT’,
syscall: ‘open’,
path: ‘C:\Users\username\Documents\ionic\Cabling\cabling2\node_modules[PACKAGE_ERROR][FILE_ERROR]’ }

My node version is 8.11.2
Angular CLI: 7.3.9

Could you please help me?
Thank you so much.

Hi @ymphyow!

Can you give more info on what you were doing? Only that stack overflow link is related to this project, but this same error can happen in almost anywhere else in the npm ecosystem.

Hi @ymphyow!

Can you give more info on what you were doing? Only that stack overflow link is related to this project, but this same error can happen in almost anywhere else in the npm ecosystem.

Hello @alcuadrado ,
I was trying to do login authentication using @auth0/cordova plugin.
I followed the link : https://www.npmjs.com/package/@auth0/cordova.
Then, when I run the program, I am facing the error below:
" crypto.randomBytes is not a function
TypeError: crypto.randomBytes is not a function".

May I know if this is version incompatibility. Many Thanks.

I'm afraid I have no idea what your problem is. You should ask in @auth0/cordova's repository.

I'm closing this issue as it's not related to this project.