Unable to install opensea-js
Been trying to install the opensea-js in my react-app. Apparently the new git rules aint in my favor. Help!
yarn add opensea-js
yarn add v1.22.17
warning ../../../package.json: No license field
[1/4] 🔍 Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/ProjectWyvern/ethereumjs-abi.git
Directory: /Users/wurdig_mich/Development/React/opensea
Output:
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
warning opensea-js > fbemitter > fbjs > [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.
warning opensea-js > web3 > web3-bzz > swarm-js > [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
warning opensea-js > web3 > web3-eth > web3-eth-accounts > [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.
warning opensea-js > web3 > web3-bzz > swarm-js > eth-lib > servify > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning opensea-js > web3 > web3-bzz > swarm-js > eth-lib > servify > request > [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.
warning opensea-js > web3 > web3-eth > web3-eth-ens > content-hash > [email protected]: This module has been superseded by the multiformats module
warning opensea-js > web3 > web3-eth > web3-eth-ens > content-hash > [email protected]: This module has been superseded by the multiformats module
warning opensea-js > web3 > web3-eth > web3-eth-ens > content-hash > cids > [email protected]: This module has been superseded by the multiformats module
warning opensea-js > web3 > web3-bzz > swarm-js > eth-lib > servify > request > [email protected]: this library is no longer supported
warning opensea-js > web3 > web3-eth > web3-eth-ens > content-hash > cids > [email protected]: This module has been superseded by the multiformats module
warning opensea-js > web3 > web3-eth > web3-eth-ens > content-hash > multihashes > [email protected]: This module has been superseded by the multiformats module
Error: Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-js.git
Directory: /Users/wurdig_mich/Development/React/opensea
Output:
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
at ProcessTermError.ExtendableBuiltin (/usr/local/lib/node_modules/yarn/lib/cli.js:721:66)
at ProcessTermError.MessageError (/usr/local/lib/node_modules/yarn/lib/cli.js:750:123)
at new ProcessTermError (/usr/local/lib/node_modules/yarn/lib/cli.js:790:113)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:25783:17)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12)
Error: Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-schemas.git
Directory: /Users/wurdig_mich/Development/React/opensea
Output:
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
at ProcessTermError.ExtendableBuiltin (/usr/local/lib/node_modules/yarn/lib/cli.js:721:66)
at ProcessTermError.MessageError (/usr/local/lib/node_modules/yarn/lib/cli.js:750:123)
at new ProcessTermError (/usr/local/lib/node_modules/yarn/lib/cli.js:790:113)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:25783:17)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12)
Try these two things:
- Follow the documentation here: https://github.com/ProjectOpenSea/opensea-js#installation
- The other times I've seen this error is because the SSH key has been removed/revoked. Make a new one and add it to your GitHub account.
- Also, take a look at this
Just wanted to follow up on this. Are you still having this issue?
Hi, I'm having a similar issue, trying to install Opensea-js via node. I think it's the same issue, so dropping it here. I've read your initial response and made sure my SSH keys are alright. Current using the most up to date version of Node as well. This is the error Im getting.
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\weele\AppData\Local\npm-cache --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 skipping integrity check for git dependency ssh://[email protected]/ahultgren/async-eventemitter.git
npm ERR! npm WARN skipping integrity check for git dependency ssh://[email protected]/ethereumjs/ethereumjs-abi.git
npm ERR! npm WARN skipping integrity check for git dependency ssh://[email protected]/ProjectOpenSea/wyvern-js.git
npm ERR! npm WARN skipping integrity check for git dependency ssh://[email protected]/frozeman/bignumber.js-nolookahead.git
npm ERR! npm WARN skipping integrity check for git dependency ssh://[email protected]/ProjectWyvern/ethereumjs-abi.git
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]: 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]: Deprecated in favor of '@metamask/eth-sig-util'
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#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]: New package name format for new versions: @ethereumjs/ethash. 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]: 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]: New package name format for new versions: @ethereumjs/blockchain. 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]: 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]: 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]: 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/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/block. Please update.
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]: 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/common. 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]: 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! 'yarn' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path C:\Users\weele\AppData\Local\npm-cache\_cacache\tmp\git-clonebCCUoc
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command C:\Windows\system32\cmd.exe /d /s /c yarn build
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! C:\Users\weele\AppData\Local\npm-cache\_logs\2022-04-11T13_45_02_418Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\weele\AppData\Local\npm-cache\_logs\2022-04-11T13_45_00_580Z-debug-0.log```
having the same error when trying to install opensea-js on a Glitch.com project
npm ERR! git dep preparation failed
...
got the same error. has this been solved?
Same error. with node 16+ npm 8+
same error: yarn 1.22.17 node v16.14.0
same error using yarn
yarn clean && yarn worked for me with this error.
This is a duplicate ticket, please follow this ticket for the latest updates on this issue to avoid confusion. I will go ahead and close.
https://github.com/ProjectOpenSea/opensea-js/issues/471