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

can't install #143

Open
okwme opened this issue Nov 28, 2021 · 9 comments
Open

can't install #143

okwme opened this issue Nov 28, 2021 · 9 comments

Comments

@okwme
Copy link

okwme commented Nov 28, 2021

i've been running into the dreaded node-gyp errors all day. After re-installing a number of different versions of node i've gotten to a new install error: git dep preparation failed and npm ERR! The git reference could not be found.

Would be great to have the versions of node and npm specified in package.json or other explicit versioning so that the repo installs as expected. I've received the same errors from the github dev environments that should be expected to be a little more consistent than my personal dev env. Still even if the code is old I'd hope the version control was working. Any ideas what I've got misconfigured?

@okwme
Copy link
Author

okwme commented Nov 28, 2021

update:
changing node-sass from^4.5.3 to ^6.0.0 got rid of the node-gyp error.

@okwme
Copy link
Author

okwme commented Nov 28, 2021

ok nm errors are back when @ensdomains/ethregistrar is included. However that repo says it's been deprecated for @ensdomains/ens-contracts so we'll see if that has the same outdated version of node-sass that is causing all the problems.

@okwme
Copy link
Author

okwme commented Nov 28, 2021

seems ok but need to find and replace all the occurrences of @ensdomains/ethregistrar/contracts with @ensdomains/ens-contracts/contracts/ethregistrar. Noted is that OldBaseRegistrarImplementation.sol is missing which is imported as EthRegistrar in a number of tests.

@okwme
Copy link
Author

okwme commented Nov 28, 2021

maybe the final node-gyp make error still turning up seems to be a result of "truffle-default-builder": "^2.0.0" which doesn't seem to be present in the project at all despite being in the dependencies of the package.json. It seems this package is unnecessary? It is relevant to truffle 1-3 and we're using truffle 5? But only for front end development? Can't quite tell but once removed npm i works!

There's an error with compiling and deploying contracts due to some pragmas stipulating solidity ^0.8.4 while solc is set to 0.5.16 (my local settings maybe?). solc versions should be explicitly set in the project so that the correct one is used too.

But this is progress!

@okwme
Copy link
Author

okwme commented Nov 28, 2021

hmm maybe the solc problem is because i'm importing from ens-contracts now which seem to use 0.8.4... how to fix this?

@okwme
Copy link
Author

okwme commented Nov 28, 2021

truffle 5.2.0 allows for the solc version to be set as pragma (see here) although i still get the following error:

Error: Could not find a single version of the Solidity compiler that satisfies the following semver expressions obtained from your source files' pragma statements: ^0.5.0 - ^0.8.4 - ^0.5.0 - ^0.5.0 - >=0.4.24 - ^0.5.0 - ^0.5.0.

I guess the compiler still needs to be consistent across imported files...

@okwme
Copy link
Author

okwme commented Nov 28, 2021

working from here in case anyone is interested: https://github.com/folia-app/subdomain-registrar

@okwme
Copy link
Author

okwme commented Nov 30, 2021

ok i imported all the old solc versions of ethregistrar directly into the repo and i'm able to compile!

@matbee-eth
Copy link

How did it end up working for you @okwme ?

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
@matbee-eth @okwme and others