Closed fiatexodus closed 4 years ago
A colleague posted on the graphprotocol discord where it was suggested we try an LTS version of node (v12.16.3)--unfortunately seeing the same problem with that configuration.
The problem is that node-gyp is incompatible with Node.js 12.x (see https://github.com/phusion/node-sha3/issues/32#issuecomment-489696413). I was able to follow the exact instructions in the tutorial by configuring to use Node.js LTS v10.16.0.
PS C:\Users\Prathamesh Patil\Desktop\my-project> npx hardhat run scripts/deploy.js --network mumbai
Compiled 1 Solidity file successfully CodeCamp deployed to : 0xdE6483f02c65Aee674B18b694c9323AC73002a4d PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> graph init
√ Protocol · ethereum √ Product for which to initialize · hosted-service √ Subgraph name · prathamesh48/codecamp √ Directory to create the subgraph in · codecamp ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... √ Ethereum network · mumbai √ Contract address · 0xdE6483f02c65Aee674B18b694c9323AC73002a4d × Failed to fetch ABI from Etherscan: ABI not found, try loading it from a local file √ ABI file (path) · C:\Users\Prathamesh Patil\Desktop\codecamp\artifacts\contracts\CodeCamp.sol\CodeCamp.json √ Start Block · 31784989
√ Contract Name · CodeCamp √ Index contract events as entities (Y/n) · false ——— Generate subgraph Write subgraph to directory √ Create subgraph scaffold √ Initialize networks config √ Initialize subgraph repository × Failed to install dependencies: Command failed: yarn warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @graphprotocol/graph-cli > 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 @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443". Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)
C:\Users\Prathamesh Patil\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\gluegun\build\index.js:13 throw up; ^
Error: Command failed: yarn
warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @graphprotocol/graph-cli > 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 @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported
warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr
warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr
warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module
error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443".
Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
code: 1,
killed: false,
signal: null,
cmd: 'yarn',
stderr: 'warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\n' +
'warning @graphprotocol/graph-cli > 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.\n' +
'warning @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n'
+
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module\n' +
'error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443".\n' +
'Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)\n'
}
Node.js v18.13.0 PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C
please fix this issue
Do you want to request a feature or report a bug? bug
What is the current behavior? ` XXXXX-MBP-5:thegraph xxxxxxx$ graph init --from-example XX-XXX/idle ✔ Subgraph name · XX-XXX/idle ✔ Directory to create the subgraph in · idle ——— ✔ Cloning example subgraph ✔ Update subgraph name and commands in package.json ✔ Initialize subgraph repository ✖ Failed to install dependencies: Command failed: yarn
`
What is the expected behavior? Not this error.
This issue is probably similar to this one: https://github.com/graphprotocol/graph-node/issues/1008 It's likely related to all the issues people have been seeing with node-gyp/keccak/macOS catalina.