We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I know Ford is looking into this but Chris suggested I make a github issue as well.
When compiling indexer agent v0.19.0 on bare metal, I get the following rust related error:
root@testnet-indexer-agent:~# npm install -g @graphprotocol/indexer-agent@0.19.0 npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@favware/skip-dependency@1.0.2', npm WARN EBADENGINE required: { node: '>=10', npm: '>=50', yarn: '^1' }, npm WARN EBADENGINE current: { node: 'v16.13.2', npm: '8.5.2' } npm WARN EBADENGINE } npm WARN deprecated fastify-warning@0.2.0: This module renamed to process-warning npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model npm ERR! command failed npm ERR! command sh -c neon build npm ERR! neon info forcing rebuild for new build settings npm ERR! neon info running cargo npm ERR! Updating crates.io index npm ERR! Updating git repository `https://github.com/graphql-rust/graphql-parser` npm ERR! Downloading crates ... npm ERR! Downloaded syn v1.0.88 npm ERR! Downloaded libc v0.2.120 npm ERR! Compiling autocfg v1.1.0 npm ERR! Compiling memchr v2.4.1 npm ERR! Compiling cc v1.0.73 npm ERR! Compiling proc-macro2 v1.0.36 npm ERR! Compiling unicode-xid v0.2.2 npm ERR! Compiling syn v1.0.88 npm ERR! Compiling regex-syntax v0.6.25 npm ERR! Compiling cfg-if v1.0.0 npm ERR! Compiling neon-build v0.9.1 npm ERR! Compiling libc v0.2.120 npm ERR! Compiling failure_derive v0.1.8 npm ERR! Compiling serde_derive v1.0.136 npm ERR! Compiling adler v1.0.2 npm ERR! Compiling gimli v0.26.1 npm ERR! Compiling version_check v0.9.4 npm ERR! Compiling void v1.0.2 npm ERR! Compiling ryu v1.0.9 npm ERR! Compiling rustc-demangle v0.1.21 npm ERR! Compiling lexical-core v0.7.6 npm ERR! Compiling serde v1.0.136 npm ERR! Compiling byteorder v1.4.3 npm ERR! Compiling serde_json v1.0.79 npm ERR! Compiling bitflags v1.3.2 npm ERR! Compiling either v1.6.1 npm ERR! Compiling static_assertions v1.1.0 npm ERR! Compiling ascii v0.9.3 npm ERR! Compiling arrayvec v0.5.2 npm ERR! Compiling semver-parser v0.7.0 npm ERR! Compiling itoa v1.0.1 npm ERR! Compiling smallvec v1.8.0 npm ERR! Compiling lazy_static v1.4.0 npm ERR! Compiling cslice v0.2.0 npm ERR! Compiling firestorm v0.4.6 npm ERR! Compiling num-traits v0.2.14 npm ERR! Compiling num-integer v0.1.44 npm ERR! Compiling num-bigint v0.2.6 npm ERR! Compiling miniz_oxide v0.4.4 npm ERR! Compiling num-iter v0.1.42 npm ERR! Compiling num-rational v0.2.4 npm ERR! Compiling num-complex v0.2.4 npm ERR! Compiling backtrace v0.3.64 npm ERR! Compiling nom v5.1.2 npm ERR! Compiling unreachable v1.0.0 npm ERR! Compiling addr2line v0.17.0 npm ERR! Compiling semver v0.9.0 npm ERR! Compiling aho-corasick v0.7.18 npm ERR! Compiling object v0.27.1 npm ERR! Compiling combine v3.8.1 npm ERR! Compiling quote v1.0.15 npm ERR! Compiling regex v1.5.5 npm ERR! Compiling neon-sys v0.9.1 npm ERR! Compiling synstructure v0.12.6 npm ERR! Compiling thiserror-impl v1.0.30 npm ERR! Compiling num v0.2.1 npm ERR! error: failed to run custom build command for `neon-sys v0.9.1` npm ERR! npm ERR! Caused by: npm ERR! process didn't exit successfully: `/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-c68a2a0e717626dc/build-script-build` (exit status: 101) npm ERR! --- stderr npm ERR! thread 'main' panicked at 'Failed to run "node-gyp configure" for neon-sys! npm ERR! Out: npm ERR! > configure-debug npm ERR! > node-gyp configure --verbose --debug npm ERR! npm ERR! npm ERR! Err: gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli '/usr/local/bin/node', npm ERR! gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', npm ERR! gyp verb cli 'configure', npm ERR! gyp verb cli '--verbose', npm ERR! gyp verb cli '--debug' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.13.2 | linux | x64 npm ERR! gyp verb command configure [] npm ERR! gyp verb find Python Python is not set from command line or npm configuration npm ERR! gyp verb find Python Python is not set from environment variable PYTHON npm ERR! gyp verb find Python checking if "python3" can be used npm ERR! gyp verb find Python - executing "python3" to get executable path npm ERR! gyp verb find Python - executable path is "/usr/bin/python3" npm ERR! gyp verb find Python - executing "/usr/bin/python3" to get version npm ERR! gyp verb find Python - version is "3.8.10" npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.13.2 npm ERR! gyp verb command install [ '16.13.2' ] npm ERR! gyp verb install input version string "16.13.2" npm ERR! gyp verb install installing version: 16.13.2 npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed npm ERR! gyp verb install version is already installed, need to check "installVersion" npm ERR! gyp verb got "installVersion" 9 npm ERR! gyp verb needs "installVersion" 9 npm ERR! gyp verb install version is good npm ERR! gyp verb get node dir target node version installed: 16.13.2 npm ERR! gyp verb build dir attempting to create "build" dir: /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/build npm ERR! gyp verb build dir "build" dir needed to be created? Yes npm ERR! gyp verb build/config.gypi creating config file npm ERR! gyp verb build/config.gypi writing out config file: /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/build/config.gypi npm ERR! gyp verb config.gypi checking for gypi file: /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/config.gypi npm ERR! gyp verb common.gypi checking for gypi file: /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/common.gypi npm ERR! gyp verb gyp gyp format was not specified; forcing "make" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.13.2/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.13.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.13.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'nan' npm ERR! Require stack: npm ERR! - /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/[eval] npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19) npm ERR! at require (node:internal/modules/cjs/helpers:102:18) npm ERR! at [eval]:1:1 npm ERR! at Script.runInThisContext (node:vm:129:12) npm ERR! at Object.runInThisContext (node:vm:305:38) npm ERR! at node:internal/process/execution:75:19 npm ERR! at [eval]-wrapper:6:22 npm ERR! at evalScript (node:internal/process/execution:74:60) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [ npm ERR! '/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native/[eval]' npm ERR! ] npm ERR! } npm ERR! gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:259:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 5.4.0-104-generic npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--verbose" "--debug" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/cost-model/native/target/debug/build/neon-sys-a3d6d0544eef4213/out/native npm ERR! gyp ERR! node -v v16.13.2 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok npm ERR! ', /root/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/neon-sys-0.9.1/build.rs:176:13 npm ERR! note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace npm ERR! warning: build failed, waiting for other jobs to finish... npm ERR! error: build failed npm ERR! neon ERR! cargo build failed npm ERR! npm ERR! Error: cargo build failed npm ERR! at Target.<anonymous> (/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/neon-cli/lib/target.js:121:35) npm ERR! at step (/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/neon-cli/lib/target.js:32:23) npm ERR! at Object.next (/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/neon-cli/lib/target.js:13:53) npm ERR! at fulfilled (/usr/local/lib/node_modules/@graphprotocol/indexer-agent/node_modules/neon-cli/lib/target.js:4:58) npm ERR! at processTicksAndRejections (node:internal/process/task_queues:96:5) npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-03-15T17_12_50_375Z-debug-0.log
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I know Ford is looking into this but Chris suggested I make a github issue as well.
When compiling indexer agent v0.19.0 on bare metal, I get the following rust related error:
The text was updated successfully, but these errors were encountered: