Open LunchboxNYC opened 2 years ago
I am trying to get Platform-Zwave to install on a new Hoobs 4.2 and receive the following error:
npm ERR! code 1 npm ERR! path /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build' npm ERR! CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o npm ERR! make: Leaving directory '/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.0 | linux | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/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/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/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.14.0/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.14.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.14.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared', 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! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from /root/.cache/node-gyp/16.14.0/include/node/v8.h:30, npm ERR! from ../src/openzwave.hpp:27, npm ERR! from ../src/callbacks.cc:18: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: note: suggested alternative: ‘perror’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! perror npm ERR! make: *** [openzwave_shared.target.mk:148: Release/obj.target/openzwave_shared/src/callbacks.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.10.103-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok
make
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-03-11T21_26_23_229Z-debug-0.log
I am trying to get Platform-Zwave to install on a new Hoobs 4.2 and receive the following error:
npm ERR! code 1 npm ERR! path /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build' npm ERR! CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o npm ERR! make: Leaving directory '/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.0 | linux | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/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/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/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.14.0/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.14.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.14.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared', 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! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from /root/.cache/node-gyp/16.14.0/include/node/v8.h:30, npm ERR! from ../src/openzwave.hpp:27, npm ERR! from ../src/callbacks.cc:18: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
npm ERR! ^>::value>::Perform(data);
npm ERR! ^>::value>::Perform(data);
npm ERR! ^>::value>::Perform(data);
npm ERR! ^
npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
npm ERR! ^>::value>::Perform(data);
npm ERR! ^
~~npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t~~npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t~~npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid npm ERR! !std::is_same<Data, std::remove_cv_t~~ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: note: suggested alternative: ‘perror’ npm ERR! !std::is_same<Data, std::remove_cv_t~~ npm ERR! perror npm ERR! make: *** [openzwave_shared.target.mk:148: Release/obj.target/openzwave_shared/src/callbacks.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:make
failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.10.103-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-03-11T21_26_23_229Z-debug-0.log