Skip to content
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

Error: Cannot find module 'bcrypto.node' #127

Open
mzcoder-hub opened this issue Feb 1, 2021 · 9 comments
Open

Error: Cannot find module 'bcrypto.node' #127

mzcoder-hub opened this issue Feb 1, 2021 · 9 comments

Comments

@mzcoder-hub
Copy link

mzcoder-hub commented Feb 1, 2021

i got some error here

D:\DataGalang\test-cepot\hs-airdrop\node_modules\loady\lib\loady.js:156
  throw err;
  ^

Error: Cannot find module 'bcrypto.node'
    at moduleError (D:\DataGalang\test-cepot\hs-airdrop\node_modules\�[4mloady�[24m\lib\loady.js:154:15)
    at resolve (D:\DataGalang\test-cepot\hs-airdrop\node_modules\�[4mloady�[24m\lib\loady.js:89:9)
    at load (D:\DataGalang\test-cepot\hs-airdrop\node_modules\�[4mloady�[24m\lib\loady.js:99:16)
    at Object.<anonymous> (D:\DataGalang\test-cepot\hs-airdrop\node_modules\�[4mbcrypto�[24m\lib\native\binding.js:11:33)
�[90m    at Module._compile (internal/modules/cjs/loader.js:1063:30)�[39m
�[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)�[39m
�[90m    at Module.load (internal/modules/cjs/loader.js:928:32)�[39m
�[90m    at Function.Module._load (internal/modules/cjs/loader.js:769:14)�[39m
�[90m    at Module.require (internal/modules/cjs/loader.js:952:19)�[39m
�[90m    at require (internal/modules/cjs/helpers.js:88:18)�[39m {
  code: �[32m'MODULE_NOT_FOUND'�[39m
}
@pinheadmz
Copy link
Member

How did you install hs-airdrop?
What OS are you using? what version of nodejs?

@mzcoder-hub
Copy link
Author

@pinheadmz im using windows 10 , i install using github clone command, and v14.15.0 nodejs

@handshake-org handshake-org deleted a comment from leonardo210795 Feb 1, 2021
@pinheadmz
Copy link
Member

pinheadmz commented Feb 1, 2021

did you execute npm rebuild ?
or npm install?

@mzcoder-hub
Copy link
Author

mzcoder-hub commented Feb 1, 2021

i did install npm install but its success installed 10 dependency, i try to run npm rebuild but missing

gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015

now i try to install the visual studio newer

@pinheadmz
Copy link
Member

a successful installation would include bcrypto and the native addon bcrypto.node

@mzcoder-hub
Copy link
Author

well yeah bcrypto.node is installed and listed on the folder https://prnt.sc/xy0sxv but stay still its throw error

@pinheadmz
Copy link
Member

and in the build folder?

Screenshot from 2021-01-31 20-19-02

@mzcoder-hub
Copy link
Author

mzcoder-hub commented Feb 1, 2021

image
theres no item in the build folder, its exist but no items

@pinheadmz well its still something, i still wait to install vs 2015 or newer ill update if its done

@andrekovac
Copy link

andrekovac commented Jul 16, 2021

Run npm rebuild bcrypto and continue npm rebuild commands for any other modules which throw the Error: Cannot find module error.

I for example still had to run npm rebuild goosig and npm rebuild mrmr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants