You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
─>$ yarn add sx127x-driver master ✖ ✱ ◼
yarn add v1.22.15
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/4] ⠈ waiting...
[2/4] ⠈ spi-device
[-/4] ⠈ waiting...
error /home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@8.2.0
gyp info using node@16.11.1 | linux | x64
gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/lib/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 '/home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/lei/.cache/node-gyp/16.11.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=/home/lei/.cache/node-gyp/16.11.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/lei/.cache/node-gyp/16.11.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device',
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' ]
make: 进入目录“/home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device/build”
CXX(target) Release/obj.target/spi/src/spi.o
CXX(target) Release/obj.target/spi/src/spidevice.o
CXX(target) Release/obj.target/spi/src/open.o
CXX(target) Release/obj.target/spi/src/close.o
CXX(target) Release/obj.target/spi/src/transfer.o
CXX(target) Release/obj.target/spi/src/getoptions.o
In file included from ../../../../nan/nan.h:292,
from ../src/getoptions.cc:4:
../../../../nan/nan_new.h: In instantiation of ‘typename Nan::imp::Factory<T>::return_t Nan::New(A0) [with T = v8::Uint32; A0 = long unsigned int; typename Nan::imp::Factory<T>::return_t = v8::Local<v8::Uint32>]’:
../src/getoptions.cc:35:25: required from here
../../../../nan/nan_new.h:208:30: 错误:对重载的‘New(long unsigned int&)’的调用有歧义
208 | return imp::Factory<T>::New(arg0);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from ../../../../nan/nan_new.h:189,
from ../../../../nan/nan.h:292,
from ../src/getoptions.cc:4:
../../../../nan/nan_implementation_12_inl.h:177:1: 附注:candidate: ‘static Nan::imp::FactoryBase<v8::Uint32>::return_t Nan::imp::Factory<v8::Uint32>::New(int32_t)’
177 | Factory<v8::Uint32>::New(int32_t value) {
| ^~~~~~~~~~~~~~~~~~~
../../../../nan/nan_implementation_12_inl.h:183:1: 附注:candidate: ‘static Nan::imp::FactoryBase<v8::Uint32>::return_t Nan::imp::Factory<v8::Uint32>::New(uint32_t)’
183 | Factory<v8::Uint32>::New(uint32_t value) {
| ^~~~~~~~~~~~~~~~~~~
make: *** [spi.target.mk:119:Release/obj.target/spi/src/getoptions.o] 错误 1
make: 离开目录“/home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device/build”
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/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 Linux 5.14.12-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/lei/github/lora_gateway/node_modules/sx127x-driver/node_modules/spi-device
gyp ERR! node -v v16.11.1
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: