Error while installing opensea-js using npm
See original GitHub issueI am getting below error while installing opensea-js.
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\Nikesh\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\Nikesh\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! 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 har-validator@5.1.3: this library is no longer supported
npm ERR! npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated eth-sig-util@1.4.2: Deprecated in favor of '@metamask/eth-sig-util'
npm ERR! npm WARN deprecated chokidar@2.1.6: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm ERR! npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated ethereumjs-block@2.2.0: New package name format for new versions: @ethereumjs/block. Please update.
npm ERR! npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm ERR! npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
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 uuid@3.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 bignumber.js@6.0.0: Custom ALPHABET bug fixed in v7.0.2
npm ERR! npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
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 ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
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-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update.
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 buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm ERR! npm WARN deprecated ethereumjs-common@1.3.1: New package name format for new versions: @ethereumjs/common. Please update.
npm ERR! npm WARN deprecated core-js@2.6.9: 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! npm ERR! code 1
npm ERR! npm ERR! path C:\Users\Nikesh\AppData\Local\npm-cache\_cacache\tmp\git-clonevd4vqI\node_modules\sha3
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
npm ERR! npm ERR! addon.cpp
npm ERR! npm ERR! c:\users\nikesh\appdata\local\npm-cache\_cacache\tmp\git-clonevd4vqi\node_modules\sha3\src\addon.cpp(49): warning C4316: 'SHA3Hash': object allocated on the heap may not be aligned 32 [C:\Users\Nikesh\AppData\Local\npm-cache\_cacache\tmp\git-clonevd4vqI\node_modules\sha3\build\sha3.vcxproj]
npm ERR! npm ERR! c:\users\nikesh\appdata\local\npm-cache\_cacache\tmp\git-clonevd4vqi\node_modules\sha3\src\addon.cpp(83): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Nikesh\AppData\Local\npm-cache\_cacache\tmp\git-clonevd4vqI\node_modules\sha3\build\sha3.vcxproj]
npm ERR! npm ERR! c:\users\nikesh\appdata\local\npm-cache\_cacache\tmp\git-clonevd4vqi\node_modules\sha3\src\addon.cpp(69): warning C4996: 'v8::Object::CreationContext': Use MaybeLocal<Context> GetCreationContext() [C:\Users\Nikesh\AppData\Local\npm-cache\_cacache\tmp\git-clonevd4vqI\node_modules\sha3\build\sha3.vcxproj]
npm ERR! npm ERR! c:\users\nikesh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(4316): note: see declaration of 'v8::Object::CreationContext'
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using node-gyp@8.4.1
npm ERR! npm ERR! gyp info using node@16.13.1 | win32 | x64
npm ERR! npm ERR! gyp info find Python using Python version 3.7.2 found at "C:\Program Files (x86)\Python37-32\python.exe"
npm ERR! npm ERR! gyp info find VS using VS2017 (15.9.28307.344) found at:
npm ERR! npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! npm ERR! gyp info spawn C:\Program Files (x86)\Python37-32\python.exe
npm ERR! npm ERR! gyp info spawn args [
npm ERR! npm ERR! gyp info spawn args 'C:\\Users\\Nikesh\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! npm ERR! gyp info spawn args '-f',
npm ERR! npm ERR! gyp info spawn args 'msvs',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args 'C:\\Users\\Nikesh\\AppData\\Local\\npm-cache\\_cacache\\tmp\\git-clonevd4vqI\\node_modules\\sha3\\build\\config.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args 'C:\\Users\\Nikesh\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args 'C:\\Users\\Nikesh\\AppData\\Local\\node-gyp\\Cache\\16.13.1\\include\\node\\common.gypi',
npm ERR! npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\Nikesh\\AppData\\Local\\node-gyp\\Cache\\16.13.1',
npm ERR! npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Nikesh\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Nikesh\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.13.1\\\\<(target_arch)\\\\node.lib',
npm ERR! npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Nikesh\\AppData\\Local\\npm-cache\\_cacache\\tmp\\git-clonevd4vqI\\node_modules\\sha3',
npm ERR! npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! npm ERR! gyp info spawn args '--depth=.',
npm ERR! npm ERR! gyp info spawn args '--no-parallel',
npm ERR! npm ERR! gyp info spawn args '--generator-output',
npm ERR! npm ERR! gyp info spawn args 'C:\\Users\\Nikesh\\AppData\\Local\\npm-cache\\_cacache\\tmp\\git-clonevd4vqI\\node_modules\\sha3\\build',
npm ERR! npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! npm ERR! gyp info spawn args ]
npm ERR! npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
npm ERR! npm ERR! gyp info spawn args [
npm ERR! npm ERR! gyp info spawn args 'build/binding.sln',
npm ERR! npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! npm ERR! gyp info spawn args '/nologo',
npm ERR! npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! npm ERR! gyp info spawn args ]
npm ERR! npm ERR! gyp ERR! build error
npm ERR! npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\Nikesh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Nikesh\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! npm ERR! gyp ERR! cwd C:\Users\Nikesh\AppData\Local\npm-cache\_cacache\tmp\git-clonevd4vqI\node_modules\sha3
npm ERR! npm ERR! gyp ERR! node -v v16.13.1
npm ERR! npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! npm ERR! gyp ERR! not ok
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! C:\Users\Nikesh\AppData\Local\npm-cache\_logs\2022-01-09T17_44_55_376Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nikesh\AppData\Local\npm-cache\_logs\2022-01-09T17_43_14_424Z-debug-0.log
Node version - 16.13.1 npm version - 8.3.0
What could be the reason for this and how to resolve this issue. Because of this issue, i cannot move forward with my project.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
can't install opensea-js · Issue #471 - GitHub
can't install opensea-js on Mac mini (M1 chip) with node v17.9.0 and npm V8.7.0. it ... npm error when trying to install the...
Read more >Can't install opensea-js with NPM - Stack Overflow
I am currently using Node v14.16.0 and NPM v7.7.5 to install opensea-js as a dependency in a project. I try to run the...
Read more >opensea-js - npm
JavaScript SDK for the OpenSea marketplace. Let users buy or sell crypto collectibles and other cryptogoods, all on your own site!
Read more >npm:opensea-js-darwin - Skypack.dev
A JavaScript library for crypto-native ecommerce: buying, selling, and bidding on any cryptogood. With OpenSea.js, you can easily build your own ...
Read more >idealtree builddeps - You.com | The search engine you control.
Delete node_modules . If there are files that you cannot delete because they are currently in use, that may mean that the npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Node version - 16.13.1 npm version - 8.3.0 @cre-mer
It is working now. installed the dependencies using yarn.