opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

can't install opensea-js

Open July-Jio opened this issue 4 years ago • 26 comments

can't install opensea-js on Mac mini (M1 chip) with node v17.9.0 and npm V8.7.0. it stay at idealTree:Crypto: sill idealTree buildDeps

July-Jio avatar Apr 17 '22 13:04 July-Jio

use yarn add instead of npm. that worked for me

shawns19 avatar Apr 18 '22 01:04 shawns19

use yarn add instead of npm. that worked for me

npm install --global yarn
yarn add opensea-js

rayeaster avatar Apr 18 '22 13:04 rayeaster

We are looking into this! @July-Jio , did you try using yarn?

esteban-OpenSea avatar Apr 18 '22 18:04 esteban-OpenSea

We are looking into this! @July-Jio , did you try using yarn?

yes, tried yarn add opensea-js and here is the error info.

yarn add v1.22.18
warning package.json: No license field
warning ../../package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] 🔍  Resolving packages...
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.
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote https://github.com/ProjectWyvern/ethereumjs-abi.git HEAD
Directory: /Users/julyjiao/Documents/Crypto/opensea-sdk
Output:
fatal: unable to access 'https://github.com/ProjectWyvern/ethereumjs-abi.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-schemas.git
Directory: /Users/julyjiao/Documents/Crypto/opensea-sdk
Output:
fatal: unable to access 'https://github.com/ProjectOpenSea/wyvern-schemas.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60
    at ProcessTermError.ExtendableBuiltin (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:721:66)
    at ProcessTermError.MessageError (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:750:123)
    at new ProcessTermError (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:790:113)
    at ChildProcess.<anonymous> (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:25783:17)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Error: Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-js.git
Directory: /Users/julyjiao/Documents/Crypto/opensea-sdk
Output:
fatal: unable to access 'https://github.com/ProjectOpenSea/wyvern-js.git/': error:02FFF036:system library:func(4095):Connection reset by peer
    at ProcessTermError.ExtendableBuiltin (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:721:66)
    at ProcessTermError.MessageError (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:750:123)
    at new ProcessTermError (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:790:113)
    at ChildProcess.<anonymous> (/Users/julyjiao/.nvm/versions/node/v16.14.2/lib/node_modules/yarn/lib/cli.js:25783:17)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

July-Jio avatar Apr 23 '22 06:04 July-Jio

same here, tried both npm & yarn, not working

newbie101gen avatar Apr 28 '22 00:04 newbie101gen

yarn add v1.22.17 [1/4] 🔍 Resolving packages... 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. error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads https://github.com/ProjectWyvern/ethereumjs-abi.git Directory: /Users//_src//avatar/-avatar Output: fatal: unable to access 'https://github.com/ProjectWyvern/ethereumjs-abi.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. Error: Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-js.git Directory: /Users//_src//avatar/-avatar Output: fatal: unable to access 'https://github.com/ProjectOpenSea/wyvern-js.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60 at ProcessTermError.ExtendableBuiltin (/Users//.yarn/lib/cli.js:721:66) at ProcessTermError.MessageError (/Users//.yarn/lib/cli.js:750:123) at new ProcessTermError (/Users//.yarn/lib/cli.js:790:113) at ChildProcess. (/Users//.yarn/lib/cli.js:25783:17) at ChildProcess.emit (node:events:527:28) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) Error: Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads https://github.com/ProjectOpenSea/wyvern-schemas.git Directory: /Users//_src//avatar/-avatar Output: fatal: unable to access 'https://github.com/ProjectOpenSea/wyvern-schemas.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60 at ProcessTermError.ExtendableBuiltin (/Users//.yarn/lib/cli.js:721:66) at ProcessTermError.MessageError (/Users//.yarn/lib/cli.js:750:123) at new ProcessTermError (/Users//.yarn/lib/cli.js:790:113) at ChildProcess. (/Users/***/.yarn/lib/cli.js:25783:17) at ChildProcess.emit (node:events:527:28) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

freemavis avatar May 09 '22 11:05 freemavis

+1

guoweifu avatar May 13 '22 06:05 guoweifu

Also having issues, whats weird is i wasnt having this issue with another project i built last week.

charlesgiovanniello avatar May 14 '22 13:05 charlesgiovanniello

Looks like i got it to work by switching to node version 14, I know thats not recommended but i at least got the dependencies to install and can pull data.

charlesgiovanniello avatar May 14 '22 13:05 charlesgiovanniello

I cant install it either... any update?

linkocrn avatar May 17 '22 07:05 linkocrn

Also can't seem to install with npm install opensea-js

cyberscape-labs avatar May 25 '22 19:05 cyberscape-labs

Same here. Not helped npm & yarn

metacopy avatar May 26 '22 06:05 metacopy

Looks like i got it to work by switching to node version 14, I know thats not recommended but i at least got the dependencies to install and can pull data.

Can you let me know which version, specifically? Tried 14.18.3 and 14.19.3 with no luck. Mind posting your package.json?

austinHodge avatar Jun 11 '22 19:06 austinHodge

Looks like i got it to work by switching to node version 14, I know thats not recommended but i at least got the dependencies to install and can pull data.

Can you let me know which version, specifically? Tried 14.18.3 and 14.19.3 with no luck. Mind posting your package.json?


I suggest you check your network, like this:

  1. run a single test git clone your-failed-repository, if still failed, swich your proxy.
  2. search the ip of raw.githubusercontent.com api.opensea.io ,append to your host config file.

this is my experiment, it worked.

freemavis avatar Jun 11 '22 20:06 freemavis

use yarn add instead of npm. that worked for me

what version of yarn and node are you using?

keganfer avatar Jun 29 '22 12:06 keganfer

Still failing to install 4.0.3, can install 4.0.1 fine but I need createSellOrder which is broken on that version

tomerds avatar Jun 29 '22 17:06 tomerds

Update: worked after upgrading to an npm version >= 8.5.2, was previously on 8.5.0

tomerds avatar Jul 01 '22 10:07 tomerds

Version 4.0.3 can still only be installed via yarn instead of npm... and the issue exists since 3 months.... any updates?

Deathwing avatar Jul 19 '22 13:07 Deathwing

Not able to install opensea-js neither with npm nor with yarn this is the yarn-error.log file please check - `Arguments: C:\Program Files\nodejs\node.exe C:\Users\websu\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js add opensea.js

PATH: C:\Users\websu\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\websu\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Go\bin;C:\Program Files\Java\jdk-17.0.3.1\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\websu\AppData\Local\Android\Sdk\platform-tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;%GOPATH%\bin;C:\HaxeToolkit\haxe;C:\HaxeToolkit\neko;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\websu\Desktop\javatext\gson-2.2.2.jar;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Users\websu\AppData\Local\Microsoft\WindowsApps;C:\Users\websu\AppData\Roaming\npm;C:\Users\websu\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\websu\go\bin;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl

Yarn version: 1.22.17

Node version: 14.17.3

Platform: win32 x64

Trace: Error: https://registry.yarnpkg.com/opensea.js: Not found at Request.params.callback [as _callback] (C:\Users\websu\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:67029:18) at Request.self.callback (C:\Users\websu\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:140883:22) at Request.emit (events.js:375:28) at Request. (C:\Users\websu\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141855:10) at Request.emit (events.js:375:28) at IncomingMessage. (C:\Users\websu\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141777:12) at Object.onceWrapper (events.js:481:28) at IncomingMessage.emit (events.js:387:35) at endReadableNT (internal/streams/readable.js:1317:12) at processTicksAndRejections (internal/process/task_queues.js:82:21)

npm manifest: { "name": "opensea-react", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "resolutions": { "@0x/utils": "https://github.com/ProjectOpensea/0x-tools/raw/provider-patch/utils/0x-utils-6.5.0.tgz" } }

yarn manifest: No manifest

Lockfile: No lockfile `

Rizwankmc avatar Jul 24 '22 05:07 Rizwankmc

Version 4.0.3

How can I switch version?

nabe14 avatar Jul 24 '22 10:07 nabe14