ProjectOpenSea / opensea-js

TypeScript SDK for the OpenSea marketplace
https://docs.opensea.io/reference
MIT License
2.27k stars 958 forks source link

Error while installing #706

Closed sghofrany closed 1 year ago

sghofrany commented 1 year ago

I am trying to install the sdk, but I am getting an error.

Node version: 17.3 Error: npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command /home/shayan/.nvm/versions/node/v17.3.0/bin/node /home/shayan/.nvm/versions/node/v17.3.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/shayan/.npm --prefer-offline=false --prefer-online=false --offl ine=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm WARN deprecated safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter npm ERR! npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm ERR! 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! npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm ERR! npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm ERR! npm WARN deprecated eth-sig-util@1.4.2: Deprecated in favor of '@metamask/eth-sig-util' npm ERR! npm WARN deprecated ethereumjs-account@3.0.0: Please use Util.Account class found on package ethereumjs-util@^7.0.6 https://github.com/ethereumjs/ethereumjs-util/releases/tag/v7.0.6 npm ERR! npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm ERR! npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm ERR! npm WARN deprecated ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update. npm ERR! npm WARN deprecated ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update. npm ERR! npm WARN deprecated ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update. npm ERR! npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info. npm ERR! npm WARN deprecated ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update. npm ERR! npm WARN deprecated uuid@2.0.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! npm WARN deprecated ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update. npm ERR! npm WARN deprecated ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update. npm ERR! npm WARN deprecated ethashjs@0.0.8: New package name format for new versions: @ethereumjs/ethash. Please update. npm ERR! npm WARN deprecated multicodec@1.0.4: This module has been superseded by the multiformats module npm ERR! npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! npm WARN deprecated uuid@3.2.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm ERR! npm WARN deprecated ethereumjs-blockchain@4.0.4: New package name format for new versions: @ethereumjs/blockchain. Please update. npm ERR! npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! npm WARN deprecated multibase@0.7.0: This module has been superseded by the multiformats module npm ERR! npm WARN deprecated multibase@0.6.1: This module has been superseded by the multiformats module npm ERR! npm WARN deprecated ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update. npm ERR! npm WARN deprecated multicodec@0.5.7: This module has been superseded by the multiformats module npm ERR! npm WARN deprecated ethereumjs-vm@2.6.0: New package name format for new versions: @ethereumjs/vm. Please update. npm ERR! npm WARN deprecated axios@0.17.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm ERR! npm WARN deprecated ethereumjs-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update. npm ERR! npm WARN deprecated ethereumjs-common@1.5.2: New package name format for new versions: @ethereumjs/common. Please update. npm ERR! npm WARN deprecated popper.js@1.14.3: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm ERR! npm WARN deprecated ethereumjs-vm@4.2.0: New package name format for new versions: @ethereumjs/vm. Please update. npm ERR! npm WARN deprecated cids@0.7.5: This module has been superseded by the multiformats module npm ERR! npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdo wn up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. npm ERR! npm WARN tarball tarball data for wyvern-js@git+ssh://git@github.com/ProjectOpenSea/wyvern-js.git#d283749f3d983a9c9e2e4da925441f75e170c9f0 (sha512-oYM16YsSwRzB4/QZ4tNasuahkxjF0uHkaMBintnq8V8f9rznYt3gxV+w4/LH8vztxQoDXj/MT1GG4SR 1SkxkpA==) seems to be corrupted. Trying again. npm ERR! npm WARN tarball tarball data for wyvern-js@git+ssh://git@github.com/ProjectOpenSea/wyvern-js.git#d283749f3d983a9c9e2e4da925441f75e170c9f0 (sha512-oYM16YsSwRzB4/QZ4tNasuahkxjF0uHkaMBintnq8V8f9rznYt3gxV+w4/LH8vztxQoDXj/MT1GG4SR 1SkxkpA==) seems to be corrupted. Trying again. npm ERR! npm ERR! code EINTEGRITY npm ERR! npm ERR! sha512-oYM16YsSwRzB4/QZ4tNasuahkxjF0uHkaMBintnq8V8f9rznYt3gxV+w4/LH8vztxQoDXj/MT1GG4SR1SkxkpA== integrity checksum failed when using sha512: wanted sha512-oYM16YsSwRzB4/QZ4tNasuahkxjF0uHkaMBintnq8V8f9rznYt3gxV+w4/LH8v ztxQoDXj/MT1GG4SR1SkxkpA== but got sha512-KUTSZZdmhxG9mQ4hr5Jnf00P9ymStgDOA0P25BL+vtE8bG4rC0zhFUqDQrynwvPXLlfiSXPquuvDSlQzjES3aA==. (794015 bytes) npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! /home/shayan/.npm/_logs/2022-08-22T00_37_13_814Z-debug-0.log

npm ERR! A complete log of this run can be found in: npm ERR! /home/shayan/.npm/_logs/2022-08-22T00_37_12_050Z-debug-0.log

I see in the README to have node version 16. Does this mean it has to be exactly node version 16 or is it 16 and higher?

cherry-ix commented 1 year ago

Same issue

sghofrany commented 1 year ago

Same issue

I changed my npm version to 8.5.0 and my node version to 16.0.0 and then I could install it.

kaanngunerr commented 1 year ago

Same for me and I tried what you said @Irantwomiles but it didn't work. Anyone have a solution? @sunwrobert

St3baS commented 1 year ago

Changed versions... still doesn't work. Any fix would be appreciated

raburas commented 1 year ago

this is annoying. I wanna use it, but even a basic installation is not possible...

St3baS commented 1 year ago

What I ended up doing was actually switching my entire project to use yarn instead of npm and it works.... very annoying

Roberttorres31 commented 1 year ago

@St3baS How do you do that?? I have 3 days trying... so annoying

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.