-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'crypto' #1053
Comments
How do you get the node binary and what OS do you use? |
Hi @vsemozhetbyt, used Linux Ubuntu 16.04, and download binary with Is this strange? |
As far as I know, if you have openssl ( cc @nodejs/crypto |
@vsemozhetbyt who @nodejs/crypto, the page not found, I've asked the nodejs/node, but it was rejected. i know @nodejs/crypto is private member, sorry. |
@sulthonzh I've just mentioned the @nodejs/crypto group so that its members can chime in) |
Couldn't reproduce it on Ubuntu 16.04 or 17.10 with Node 8.9.4 from nvm. @sulthonzh can you try to reinstall Node 8.9.4 to see if something went wrong during installation or if it's an environment problem? (remember to clear nvm cache before reinstalling it with |
Yes, the crypto module should be available. What happens if you start the REPL by running
|
As far as I understood, you're having problems when running a Casper test, right? Casper does not run on node, so this is not a Node issue. There's a related issue on Casper repository: https://github.com/casperjs/casperjs/issues/738, maybe it can help you :) |
@mmarchini oh not careful, I have not read it, ok thanks for u reference, |
I'm getting the same error after upgrade from Angular version 5 to 6. below is my package.json "dependencies": { Please help |
@thatham This gist resolved my issue, It's a hacky solution but might be worth a look: |
hello, i got error when require 'crypto'
==========================================================
code:
const crypto = require('crypto');
error result:
Cannot find module 'crypto'
==========================================================
is not crypto module supposed to by default already included?
but why this error got it?
thanks,
sorry, for this issue i write here.
this is my env:
The text was updated successfully, but these errors were encountered: