question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with Keccak when installing truffle

See original GitHub issue

I keep have the same issue as described in the #1584 with Keccack when trying to install Truffle.

I have tried with different versions, I also tried to compltely unbinstall glo–bally and install globally again, but I always get the same error when installing:

npm install -g truffle
/Users/adriendulong/.nvm/versions/node/v12.0.0/bin/truffle -> /Users/adriendulong/.nvm/versions/node/v12.0.0/lib/node_modules/truffle/build/cli.bundled.js

> keccak@1.4.0 install /Users/adriendulong/.nvm/versions/node/v12.0.0/lib/node_modules/truffle/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."


> keccak@1.4.0 rebuild /Users/adriendulong/.nvm/versions/node/v12.0.0/lib/node_modules/truffle/node_modules/keccak
> node-gyp rebuild

  CXX(target) Release/obj.target/keccak/src/addon.o
../src/addon.cc:37:47: error: too few arguments to function call, single
      argument 'context' was not specified
    unsigned int rate = info[0]->IntegerValue();`

Is anyone getting the same issue? Could it be related to the configuration of my node installation?

Thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
asimjb1200commented, Mar 27, 2021

This is still an issue with node v13.9.0. Is anyone planning on fixing this or will we always be forced to roll back our node version?

1reaction
triple-veecommented, Mar 29, 2020

I had this problem when trying to install everything globally. Once I removed all the packages globally and created a local instance of node, the packages installed without error in my local instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm error "Keccak bindings compilation fail." while installing ...
Use npm install -g truffle --unsafe-perm to install truffle this is probably happening due to a syntax issue of keccak which shouldn't ...
Read more >
truffle version installation issue - Ethereum Stack Exchange
The issue is more node / npm related than it is blockchain. Its to do with a difference between your version of node...
Read more >
ConsenSys/truffle - Gitter
I'm having issue installing Truffle: npm install -g truffle@5.0.2. It gives me a bunch of error: ... make: * [Release/obj.target/keccak/src/addon.o] Error 1
Read more >
Not able to install truffle | Edureka Community
stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/truffle/node_modules/keccak/.node-gyp' gyp ERR! System Linux 4.15.0- ...
Read more >
How we're making installation issues a thing of the past
In order to install those packages, NPM has to be able to compile them on the fly during installation, which means every Truffle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found