rarible / sdk

MIT License
83 stars 41 forks source link

sdk compilation problem #632

Closed luisgrisolia closed 1 month ago

luisgrisolia commented 1 month ago

Hi, I'm having an issue while installing dependencies, can someone please explain what's going on with http://nexus.rarible.int, I'm I missing something here?

Reproduce: Clone the SDK repository and run yarn install Environment: Github Workspaces Node version: lts/hydrogen -> v18.20.3

@luisgrisolia ➜ /workspaces/sdk (master) $ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
warning Pattern ["ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git"] is trying to unpack in the same destination "/home/codespace/.cache/yarn/v6/npm-ethereumjs-abi-0.6.8-ee3994657fa7a427238e6ba92a84d0b529bbcde0/node_modules/ethereumjs-abi" as pattern ["ethereumjs-abi@^0.6.8","ethereumjs-abi@^0.6.8"]. This could result in non-deterministic behavior, skipping.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "http://nexus.rarible.int/repository/npm-all/magic-sdk/-/magic-sdk-18.6.0.tgz: getaddrinfo ENOTFOUND nexus.rarible.int".
info If you think this is a bug, please open a bug report with the information provided in "/workspaces/sdk/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

yarn-error.log

luisgrisolia commented 1 month ago

yarn.lock, line 18807 is referencing that unreachable endpoint...

magic-sdk@^18.2.1:
  version "18.6.0"
  resolved "http://nexus.rarible.int/repository/npm-all/magic-sdk/-/magic-sdk-18.6.0.tgz#72cff86756d9e1eaf2040eb682e28a3733fe051a"
  integrity sha512-6FdgZEKVEFZvrGlth2ZiipTEr7ihe0E4wbnPk1WlK3xIxFg3Gr5/Ca1PgWdkvNjKxjngySYykLXdCnwuNjt19w==
  dependencies:
    "@magic-sdk/commons" "^14.6.0"
    "@magic-sdk/provider" "^18.6.0"
    "@magic-sdk/types" "^15.8.0"
    localforage "^1.7.4"

Solution:

rm yarn.lock
yarn install