Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Problem with Keccak when installing truffle #1950

Closed
adriendulong opened this issue Apr 25, 2019 · 11 comments
Closed

Problem with Keccak when installing truffle #1950

adriendulong opened this issue Apr 25, 2019 · 11 comments

Comments

@adriendulong
Copy link

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

@eggplantzzz
Copy link
Contributor

Yes, I can reproduce the issue. It is likely due to using Node 12. We'll have to look into it. In the meantime if you downgrade to something between version 8.9.4 and the latest version of 11 it should be perfectly fine. Thanks for the heads up on this!

@wbt
Copy link
Contributor

wbt commented May 6, 2019

This may be a duplicate of issue #1584, in which node 9.3.0 was used. Therefore, switching to that version of Node seems unlikely to be a successful solution.

@eggplantzzz
Copy link
Contributor

@adriendulong Can you give some information about versioning? For example, are you on Windows or Mac? Can you paste the output from truffle version here as well?

@fainashalts
Copy link
Contributor

Hi @adriendulong thanks for opening this issue! Can you get back to us about @eggplantzzz's question? We'll close this for issue maintenance next week unless it's still an issue.

@gnidan
Copy link
Contributor

gnidan commented Nov 27, 2019

Closing now for issue maintenance. Feel free to get back to us an we'll re-open! Thanks!

@gnidan gnidan closed this as completed Nov 27, 2019
@triple-vee
Copy link

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.

@mikec
Copy link

mikec commented May 4, 2020

Also had this problem installing with node v12.16.1. Rolled back to node v11.14.0 and install worked.

@asimjb1200
Copy link

asimjb1200 commented 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?

@mareksipos93
Copy link

Same issue with node v14.16.0

@cds-amal
Copy link
Member

Hi @Iwitrag ,

We've been on the lookout for this one for a while. Can you share reproduction steps as well as environment details so we can investigate/reproduce? Thanks in advance!

Environment

  • Operating System:
  • Ethereum client:
  • Truffle version (truffle version):
  • node version (node --version):
  • npm version (npm --version):

@cds-amal cds-amal reopened this Dec 31, 2021
@cds-amal
Copy link
Member

cds-amal commented Feb 2, 2022

Closing for issue maintenance. Please let us know if this is still an issue.

@cds-amal cds-amal closed this as completed Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants