I would like to check if it is possible to update modern-syslog to the latest LTS version of nodejs?
Here are the installation errors:
` npm install modern-syslog
npm ERR! code 1
npm ERR! path /opt/meshcentral/node_modules/modern-syslog
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.3.0
npm ERR! gyp info using node@16.13.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.6.15 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/lib64/node_modules/npm16/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 '/opt/meshcentral/node_modules/modern-syslog/build/config.gypi',
0 verbose cli [
0 verbose cli '/usr/bin/node16',
0 verbose cli '/usr/bin/npm-default',
0 verbose cli 'install',
0 verbose cli 'modern-syslog'
0 verbose cli ]
1 info using npm@8.1.2
2 info using node@v16.13.2
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:/usr/lib64/node_modules/npm16/npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 4ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/opt/meshcentral/.npmrc Completed in 1ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/root/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 2ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 19ms
19 timing npm:load:configload Completed in 19ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 1ms
22 timing config:load:flatten Completed in 7ms
23 timing npm:load:cleanupLog Completed in 5ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 0ms
26 timing npm:load Completed in 37ms
27 timing arborist:ctor Completed in 2ms
28 timing idealTree:init Completed in 366ms
"~/.npm/_logs/2022-06-23T13_57_07_747Z-debug.log" 317L, 15273B 1,1 Top npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib64/node_modules/npm16/node_modules/node-gyp/addon-rpm.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/include/node16/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=/usr/include/node16',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib64/node_modules/npm16/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/usr/include/node16/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/meshcentral/node_modules/modern-syslog',
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: /usr/include/node16/common.gypi not found (cwd: /opt/meshcentral/node_modules/modern-syslog) while reading includes of 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/lib64/node_modules/npm16/node_modules/node-gyp/lib/configure.js:265: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.3.18-150300.59.68-default
npm ERR! gyp ERR! command "/usr/bin/node16" "/usr/lib64/node_modules/npm16/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /opt/meshcentral/node_modules/modern-syslog
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v8.3.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-06-23T13_57_07_747Z-debug.log`
I would like to check if it is possible to update modern-syslog to the latest LTS version of nodejs?
Here are the installation errors:
` npm install modern-syslog npm ERR! code 1 npm ERR! path /opt/meshcentral/node_modules/modern-syslog npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.6.15 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/lib64/node_modules/npm16/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 '/opt/meshcentral/node_modules/modern-syslog/build/config.gypi',
0 verbose cli [ 0 verbose cli '/usr/bin/node16', 0 verbose cli '/usr/bin/npm-default', 0 verbose cli 'install', 0 verbose cli 'modern-syslog' 0 verbose cli ] 1 info using npm@8.1.2 2 info using node@v16.13.2 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 4ms 5 timing config:load:file:/usr/lib64/node_modules/npm16/npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 4ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:/opt/meshcentral/.npmrc Completed in 1ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:/root/.npmrc Completed in 0ms 12 timing config:load:user Completed in 0ms 13 timing config:load:file:/usr/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 2ms 17 timing config:load:setEnvs Completed in 2ms 18 timing config:load Completed in 19ms 19 timing npm:load:configload Completed in 19ms 20 timing npm:load:setTitle Completed in 0ms 21 timing npm:load:setupLog Completed in 1ms 22 timing config:load:flatten Completed in 7ms 23 timing npm:load:cleanupLog Completed in 5ms 24 timing npm:load:configScope Completed in 0ms 25 timing npm:load:projectScope Completed in 0ms 26 timing npm:load Completed in 37ms 27 timing arborist:ctor Completed in 2ms 28 timing idealTree:init Completed in 366ms "~/.npm/_logs/2022-06-23T13_57_07_747Z-debug.log" 317L, 15273B 1,1 Top npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib64/node_modules/npm16/node_modules/node-gyp/addon-rpm.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/include/node16/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=/usr/include/node16', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib64/node_modules/npm16/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/usr/include/node16/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/meshcentral/node_modules/modern-syslog', 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: /usr/include/node16/common.gypi not found (cwd: /opt/meshcentral/node_modules/modern-syslog) while reading includes of 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/lib64/node_modules/npm16/node_modules/node-gyp/lib/configure.js:265: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.3.18-150300.59.68-default npm ERR! gyp ERR! command "/usr/bin/node16" "/usr/lib64/node_modules/npm16/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/meshcentral/node_modules/modern-syslog npm ERR! gyp ERR! node -v v16.13.2 npm ERR! gyp ERR! node-gyp -v v8.3.0 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-06-23T13_57_07_747Z-debug.log`
Thanks