Skip to content

Cannot find module 'crypto' #1053

@sulthonzh

Description

@sulthonzh

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:

{ 
test: '1.0.0',
npm: '5.6.0',
ares: '1.10.1-DEV',
cldr: '31.0.1',
http_parser: '2.7.0',
icu: '59.1',
modules: '57',
nghttp2: '1.25.0',
node: '8.9.4',
openssl: '1.0.2n',
tz: '2017b',
unicode: '9.0',
uv: '1.15.0',
v8: '6.1.534.50',
zlib: '1.2.11' 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions