Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Possible conflict with "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers", #8

@mhpaler

Description

@mhpaler

When installing:

"@appliedblockchain/chainlink-contracts": "^0.0.4",
"@appliedblockchain/chainlink-plugins-fund-link": "^0.0.3",

Getting the following error:

warning Error running install script for optional dependency: "/Users/User/Sites/ets/packages/hardhat/node_modules/node-hid: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments: 
Directory: /Users/User/Sites/ets/packages/hardhat/node_modules/node-hid
Output:
prebuild-install WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=x64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp@8.3.0
gyp info using node@16.13.1 | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/usr/local/opt/python@3.8/bin/python3.8\"
gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
gyp info spawn args [
gyp info spawn args   '/Users/User/.fnm/node-versions/v16.13.1/installation/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/User/Sites/ets/packages/hardhat/node_modules/node-hid/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/User/.fnm/node-versions/v16.13.1/installation/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/User/Library/Caches/node-gyp/16.13.1/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/User/Library/Caches/node-gyp/16.13.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/User/.fnm/node-versions/v16.13.1/installation/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/User/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/User/Sites/ets/packages/hardhat/node_modules/node-hid',
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
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/hidapi/hidapi/mac/hid.o
  LIBTOOL-STATIC Release/hidapi.a
  CXX(target) Release/obj.target/HID/src/HID.o
../src/HID.cc:612:31: error: too few arguments to function call, expected 3, have 2
  node::AtExit(deinitialize, 0);
  ~~~~~~~~~~~~                ^
/Users/User/Library/Caches/node-gyp/16.13.1/include/node/node.h:913:18: note: 'AtExit' declared here
NODE_EXTERN void AtExit(Environment* env,
                 ^
1 error generated.
make: *** [Release/obj.target/HID/src/HID.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/User/.fnm/node-versions/v16.13.1/installation/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command \"/Users/User/.fnm/node-versions/v16.13.1/installation/bin/node\" \"/Users/User/.fnm/node-versions/v16.13.1/installation/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/User/Sites/ets/packages/hardhat/node_modules/node-hid
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.3.0
gyp ERR! not ok"

We use the hardhat-deploy-ethers version of hardhat-ethers to support some of the additional commands from hardhat-deploy

https://github.com/wighawag/hardhat-deploy#npm-install-hardhat-deploy

Not 100% this is the source of the conflict, but it's the only difference I can see in our setup. Will continue to investigate, and report back if we find a solution.

Perhaps others have one already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions