Issue with Truffle

We have an issue with truffle-hdwallet-provider-klaytn

It npm install doesn’t work anymore
it raise multiple kind of errors but here is a a little summary

npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. ‘mkdirp’ itself supports promises now, please switch to that.

npm ERR! Failed at the scrypt@6.0.3 install script.

Any help will be welcome

Hey Shaban,

Since it failed at installing scrypt package, I think it’s a problem related to node-gyp build. The scrypt package often fails to install at node-gyp build with node 12. If you are using node 12, try again with node 10.

1 Like

you can try to change node version. (using nvm)
version 12.x.x is not working (in my case)
you can find some information about nodejs.
use node 10.16.0. (in my case, it works)

good luck.

1 Like

Thank you for your replies,

I tried version 10 but I still have the same issue

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/shaban/.nvm/versions/node/v10.21.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command “/Users/shaban/.nvm/versions/node/v10.21.0/bin/node” “/Users/shaban/.nvm/versions/node/v10.21.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /Applications/MAMP/htdocs/BCY721Collection/node_modules/scrypt
gyp ERR! node -v v10.21.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 (node_modules/ganache-core/node_modules/scrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 install: node-gyp rebuild

I did “rm -r node_modules/” prior to that but still have the error.
Did I miss osmething ?

I see…

It sometimes happens even with node 10.
Try out the following link and see if it still fails.

gyp ERR! node -v v10.21.0

==> you can use node version 10.16.0.
any nodejs version with bigger than this, it might fail.

good luck.