Hi,
i tried to install the smartmeter node on a linux mint 21.3 system, failed with the following messages:
024-06-08T12:39:21.829Z Installieren : node-red-contrib-smartmeter 0.6.3
`Preformatted text`2024-06-08T12:39:21.845Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-smartmeter@0.6.3
2024-06-08T12:39:21.945Z [err] npm warn config production Use `--omit=dev` instead.
2024-06-08T12:39:31.412Z [err] npm warn deprecated har-validator@5.1.5: this library is no longer supported
2024-06-08T12:39:31.434Z [err] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-06-08T12:39:31.441Z [err] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2024-06-08T12:39:32.197Z [err] npm error code 1
2024-06-08T12:39:32.197Z [err] npm error path /home/alex/.node-red/node_modules/@serialport/bindings
2024-06-08T12:39:32.198Z [err] npm error command failed
2024-06-08T12:39:32.198Z [err] npm error command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2024-06-08T12:39:32.198Z [err] npm error make: Verzeichnis „/home/alex/.node-red/node_modules/@serialport/bindings/build“ wird betreten
2024-06-08T12:39:32.198Z [err] npm error CXX(target) Release/obj.target/bindings/src/serialport.o
2024-06-08T12:39:32.198Z [err] npm error make: Verzeichnis „/home/alex/.node-red/node_modules/@serialport/bindings/build“ wird verlassen
2024-06-08T12:39:32.198Z [err] npm error prebuild-install warn install No prebuilt binaries found (target=18.20.3 runtime=node arch=x64 libc= platform=linux)
2024-06-08T12:39:32.198Z [err] npm error gyp info it worked if it ends with ok
2024-06-08T12:39:32.198Z [err] npm error gyp info using node-gyp@10.1.0
2024-06-08T12:39:32.198Z [err] npm error gyp info using node@18.20.3 | linux | x64
2024-06-08T12:39:32.198Z [err] npm error gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn /usr/bin/python3
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args [
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'binding.gyp',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-f',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'make',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/home/alex/.node-red/node_modules/@serialport/bindings/build/config.gypi',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/home/alex/.cache/node-gyp/18.20.3/include/node/common.gypi',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dlibrary=shared_library',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dvisibility=default',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_root_dir=/home/alex/.cache/node-gyp/18.20.3',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_lib_file=/home/alex/.cache/node-gyp/18.20.3/<(target_arch)/node.lib',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dmodule_root_dir=/home/alex/.node-red/node_modules/@serialport/bindings',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_engine=v8',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--depth=.',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--no-parallel',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--generator-output',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'build',
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Goutput_dir=.'
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args ]
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn make
2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2024-06-08T12:39:32.198Z [err] npm error make: g++: Datei oder Verzeichnis nicht gefunden
Then i took a 2 years old raspi installation, installation works. I made a brand new raspi installation, it works also.
So what is wrong on my linux system? All updates installed.
Any help is welcomed!