Signal-K / marketplace

Marketplace repository (demo) for Star Sailors assets
3 stars 1 forks source link

Sailors Contract -> node-addon-api #29

Closed Gizmotronn closed 2 years ago

Gizmotronn commented 2 years ago

Seems like node-addon-api module is causing problems with yarn command:

marketplace ❯ yarn add node-addon-api                                                                                                                                                       moralis-dao
yarn add v1.22.19
info No lockfile found.
[1/4] πŸ”  Resolving packages...
warning @testing-library/jest-dom > css > source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
warning react-scripts > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning react-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning react-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-scripts > workbox-webpack-plugin > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning react-scripts > workbox-webpack-plugin > workbox-build > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning react-scripts > webpack-dev-server > webpack-log > 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.
warning react-scripts > webpack-dev-server > sockjs > 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.
warning react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning react-scripts > @pmmmwh/react-refresh-webpack-plugin > native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning react-scripts > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning react-scripts > webpack > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-scripts > resolve-url-loader > rework > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning react-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: Switch to 'npm install joi'
warning react-scripts > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning react-scripts > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning react-scripts > postcss-preset-env > postcss-color-gray > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > 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 slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > eth-sig-util@1.4.2: Deprecated in favor of '@metamask/eth-sig-util'
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-middleware > eth-sig-util@1.4.2: Deprecated in favor of '@metamask/eth-sig-util'
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-block > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm@2.6.0: New package name format for new versions: @ethereumjs/vm. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm > ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm > ethereumjs-block > ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > request > 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.
warning web3uikit > @walletconnect/web3-provider > @walletconnect/qrcode-modal > @walletconnect/mobile-registry@1.4.0: Deprecated in favor of dynamic registry available from: https://github.com/walletconnect/walletconnect-registry
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-middleware > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-infura > json-rpc-engine > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm > ethereumjs-common@1.5.2: New package name format for new versions: @ethereumjs/common. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm > ethereumjs-block > ethereumjs-common@1.5.2: New package name format for new versions: @ethereumjs/common. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > ethereumjs-vm > ethereumjs-block > ethereumjs-tx > ethereumjs-common@1.5.2: New package name format for new versions: @ethereumjs/common. Please update.
warning web3uikit > @walletconnect/web3-provider > web3-provider-engine > request > har-validator@5.1.5: this library is no longer supported
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning " > @testing-library/user-event@13.5.0" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > web3uikit@0.1.156" has incorrect peer dependency "react@18".
warning " > web3uikit@0.1.156" has incorrect peer dependency "react-dom@18".
warning "web3uikit > styled-components@5.3.5" has unmet peer dependency "react-is@>= 16.8.0".
warning "web3uikit > @web3auth/web3auth@0.3.3" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @toruslabs/openlogin@1.7.5" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/base@0.3.1" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > wp5-cra-polyfill@0.0.1" has unmet peer dependency "webpack@>=5".
warning "web3uikit > @web3auth/web3auth > @toruslabs/openlogin > @toruslabs/http-helpers@2.2.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @toruslabs/openlogin > @toruslabs/openlogin-jrpc@1.7.3" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @toruslabs/openlogin > @toruslabs/openlogin-utils@1.7.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-solana-adapter > @toruslabs/solana-embed@0.1.6" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-solana-adapter > @web3auth/base-provider@0.3.1" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/openlogin-adapter > @toruslabs/openlogin-ed25519@1.7.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-solana-adapter > @web3auth/solana-provider@0.3.1" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/openlogin-adapter > @web3auth/ethereum-provider@0.3.1" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed@1.23.2" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/http-helpers@3.0.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/openlogin-jrpc@2.0.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/openlogin-jrpc > @toruslabs/openlogin-utils@2.0.0" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > wp5-cra-polyfill > node-polyfill-webpack-plugin@1.1.4" has unmet peer dependency "webpack@>=5".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-solana-adapter > @toruslabs/solana-embed > @toruslabs/base-controllers@1.6.18" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/fetch-node-details@6.0.1" has unmet peer dependency "@babel/runtime@7.x".
warning "web3uikit > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/torus.js@6.0.1" has unmet peer dependency "@babel/runtime@7.x".
warning " > hardhat@2.9.7" has unmet peer dependency "chai@^4.2.0".
[4/4] πŸ”¨  Building fresh packages...
[16/17] ⠁ wp5-cra-polyfill
[10/17] ⠁ microtime
[-/17] ⠁ waiting...
[-/17] ⠁ waiting...
error /Users/liamarbuckle/Documents/Mint/marketplace/node_modules/microtime: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments: 
Directory: /Users/liamarbuckle/Documents/Mint/marketplace/node_modules/microtime
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.15.0 | darwin | arm64
gyp info find Python using Python version 3.10.4 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/liamarbuckle/Documents/Mint/marketplace/node_modules/microtime/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/liamarbuckle/Library/Caches/node-gyp/16.15.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/liamarbuckle/Library/Caches/node-gyp/16.15.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/liamarbuckle/Library/Caches/node-gyp/16.15.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/liamarbuckle/Documents/Mint/marketplace/node_modules/microtime',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/liamarbuckle/Documents/Mint/marketplace/node_modules/microtime

The same error appears when using generic yarn or yarn add node-addon-api

Gizmotronn commented 2 years ago

@Aashrit-Garg -> moralis-dao branch