node-process-list icon indicating copy to clipboard operation
node-process-list copied to clipboard

can't install in linux

Open nickveliki opened this issue 4 years ago • 1 comments

npm ERR! code 1 npm ERR! path /root/processlisttest/node_modules/process-list npm ERR! command failed npm ERR! command sh -c prebuild-install || node-gyp rebuild npm ERR! make: Entering directory '/root/processlisttest/node_modules/process-list/build' npm ERR! CXX(target) Release/obj.target/processlist/src/main.o npm ERR! processlist.target.mk:119: recipe for target 'Release/obj.target/processlist/src/main.o' failed npm ERR! make: Leaving directory '/root/processlisttest/node_modules/process-list/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info find Python using Python version 3.6.9 found at "/usr/bin/python3" npm ERR! gyp http GET https://nodejs.org/download/release/v16.3.0/node-v16.3.0-headers.tar.gz npm ERR! gyp http 200 https://nodejs.org/download/release/v16.3.0/node-v16.3.0-headers.tar.gz npm ERR! gyp http GET https://nodejs.org/download/release/v16.3.0/SHASUMS256.txt npm ERR! gyp http 200 https://nodejs.org/download/release/v16.3.0/SHASUMS256.txt npm ERR! (node:13578) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use node --trace-deprecation ... to show where the warning was created) 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 '/root/processlisttest/node_modules/process-list/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.3.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.3.0', 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.3.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/root/processlisttest/node_modules/process-list', 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.3.0/include/node/v8.h:30:0, npm ERR! from /root/.cache/node-gyp/16.3.0/include/node/node.h:63, npm ERR! from ../../nan/nan.h:58, npm ERR! from ../src/main.cpp:7: npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^~~~~~~~~~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^~~~~~~~~~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:50: error: template argument 2 is invalid npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^ npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:63: error: ‘::Perform’ has not been declared npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8-internal.h:452:63: note: suggested alternative: ‘herror’ npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); npm ERR! ^~~~~~~ npm ERR! herror npm ERR! make: *** [Release/obj.target/processlist/src/main.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/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 4.15.0-147-generic npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /root/processlisttest/node_modules/process-list npm ERR! gyp ERR! node -v v16.3.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok

thought first it was only on my raspberry pi but also my server vm doesn't like it. What can I do to fix?

nickveliki avatar Sep 12 '21 23:09 nickveliki

I can confirm that it's not buildable with node version 16. With node version 14 it's working as "npm rebuild", if installed before, eg.g. under node version 12.

A install from scratch with node version 14 under ubuntu 22 doesn't work.

nowrap avatar May 26 '22 09:05 nowrap