AElfProject / aelf-web3.js

aelf JavaScript SDK
MIT License
16 stars 24 forks source link

Can't install `scrypt` in node v12. #51

Closed atom-yang closed 5 years ago

atom-yang commented 5 years ago

Describe the bug Can't install scrypt in node v12.

To Reproduce Steps to reproduce the behavior: When npm i or yarn, aelf-sdk requires scrypt.js, and scrypt.js takes scrypt as optional dependencies,which ignore error when installing. aelf-sdk take scrypt as an external package, without scrypt, it can't run. Here is the problem, the preinstall step of scrypt failed in Node v12.

Expected behavior Install scrypt successfully

Desktop (please complete the following information):

Additional context Resolve this by writing a custom module which contains scrypt for Node, using crypto.scrypt

similar issue