Nvm version for opensea-js
Hello, I am using 16.14.2 version of nvm.
opensea-js not installed by command npm install --save opensea-js
error log:
`npm ERR! code 127
npm ERR! git dep preparation failed
npm ERR! command /home/avm/.nvm/versions/node/v16.14.2/bin/node /home/avm/.nvm/versions/node/v16.14.2/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/avm/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > [email protected] prepublish
npm ERR! > yarn build
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN deprecated [email protected]: Renamed to @metamask/safe-event-emitter
npm ERR! npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
npm ERR! npm WARN deprecated [email protected]: 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 [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm ERR! npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm ERR! npm WARN deprecated [email protected]: 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 [email protected]: New package name format for new versions: @ethereumjs/ethash. Please update.
npm ERR! npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: New package name format for new versions: @ethereumjs/blockchain. Please update.
npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm ERR! npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
npm ERR! npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/common. Please update.
npm ERR! npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm ERR! npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
npm ERR! npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! npm WARN deprecated [email protected]: 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 slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! sh: 1: yarn: not found
npm ERR! npm ERR! code 127
npm ERR! npm ERR! path /home/avm/.npm/_cacache/tmp/git-cloneTvNr2p
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c yarn build
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /home/avm/.npm/_logs/2022-04-20T12_29_11_630Z-debug-0.log
npm ERR! A complete log of this run can be found in: npm ERR! /home/avm/.npm/_logs/2022-04-20T12_29_09_541Z-debug-0.log`
Which version I should use?
Please use the latest version of Node and the SDK. If that doesn't work try installing with yarn.
npm install --global yarn
yarn add opensea-js
Please follow this issue for the latest updates on the npm install: https://github.com/ProjectOpenSea/opensea-js/issues/471