I'm a newbie and I'm trying to learn IoT systems and currently working with Node-red, influxdb and grafana to visualize simple projects. I'm running on a small fitlet2 linux mint 22
I was trying to connect a Bluetooth weather station to the rest of my automation and looking through the internet and asking chatgpt, the easiest way seemed with BLE integration to a function to a database.
I tried to install different pallets in Node-red, for example "node-red-contrib-noble" which doesn't show all the tools after installation. "node-red-contrib-generic-ble" which can't be installed. If I try to install node-red-contrib-generic-ble from node-redd I'm getting this output:
`-----------------------------------------------------------
2024-11-10T18:28:24.621Z Install : node-red-contrib-generic-ble 4.0.3
2024-11-10T18:28:24.730Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-generic-ble@4.0.3
2024-11-10T18:28:44.723Z [err] npm
2024-11-10T18:28:44.724Z [err] WARN deprecated npmlog@5.0.1: This package is no longer supported.
2024-11-10T18:28:44.889Z [err] npm
2024-11-10T18:28:44.889Z [err] WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2024-11-10T18:28:44.981Z [err] npm WARN
2024-11-10T18:28:44.982Z [err] deprecated are-we-there-yet@2.0.0: This package is no longer supported.
2024-11-10T18:28:45.205Z [err] npm WARN
2024-11-10T18:28:45.205Z [err] deprecated abstract-socket@2.1.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
2024-11-10T18:28:45.320Z [err] npm WARN
2024-11-10T18:28:45.321Z [err] deprecated gauge@3.0.2: This package is no longer supported.
2024-11-10T18:28:52.966Z [err] npm
2024-11-10T18:28:52.966Z [err] ERR! code 1
2024-11-10T18:28:52.966Z [err] npm
2024-11-10T18:28:52.966Z [err] ERR! path /home/legendtaioh/.node-red/node_modules/@abandonware/noble
2024-11-10T18:28:52.975Z [err] npm ERR! command failed
2024-11-10T18:28:52.975Z [err] npm ERR! command sh -c node-gyp-build
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info it worked if it ends with ok
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info using node-gyp@3.8.0
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info using node@18.19.1 | linux | x64
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! configure error
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack File "", line 1
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-10T18:28:52.975Z [err] npm ERR!
2024-11-10T18:28:52.975Z [err] gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! System Linux 6.8.0-48-generic
2024-11-10T18:28:52.975Z [err] npm
2024-11-10T18:28:52.976Z [err] ERR! gyp ERR! command "/usr/bin/node" "/home/legendtaioh/.node-red/node_modules/.bin/node-gyp" "rebuild"
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! cwd /home/legendtaioh/.node-red/node_modules/@abandonware/noble
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! node -v v18.19.1
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! node-gyp -v v3.8.0
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! not ok
2024-11-10T18:28:52.986Z [err]
2024-11-10T18:28:52.987Z [err] npm ERR! A complete log of this run can be found in:
2024-11-10T18:28:52.987Z [err] npm ERR!
2024-11-10T18:28:52.988Z [err] /home/legendtaioh/.npm/_logs/2024-11-10T18_28_27_051Z-debug-0.log
2024-11-10T18:28:53.026Z rc=1`
The output log is: 2024-11-10T18_28_27_051Z-debug-0.log
Or when i try to install it through the terminal i get:
`legendtaioh@legendtaioh-FitLet2:~$ sudo npm install node-red-contrib-generic-ble
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm WARN deprecated npmlog@5.0.1: This package is no longer supported.
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated abstract-socket@2.1.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated gauge@3.0.2: This package is no longer supported.
added 193 packages, and audited 204 packages in 51s
18 packages are looking for funding
run npm fund for details
7 vulnerabilities (4 moderate, 3 high)
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run npm audit for details.`
npm audit fix doesn't work and the npm fund details are:legendtaioh ├── https://github.com/sponsors/isaacs │ └── glob@10.4.5, foreground-child@3.3.0, jackspeak@3.4.3, minimatch@9.0.5, path-scurry@1.11.1, signal-exit@4.1.0, rimraf@3.0.2 ├─┬ https://github.com/chalk/chalk?sponsor=1 │ │ └── chalk@4.1.2 │ └── https://github.com/chalk/ansi-styles?sponsor=1 │ └── ansi-styles@4.3.0, ansi-styles@5.2.0 ├─┬ https://opencollective.com/babel │ │ └── @babel/core@7.26.0 │ └── https://opencollective.com/browserslist │ └── browserslist@4.24.2, caniuse-lite@1.0.30001679, update-browserslist-db@1.1.1 ├── https://github.com/sponsors/jonschlinkert │ └── picomatch@4.0.2 ├── https://github.com/sponsors/sibiraj-s │ └── ci-info@4.0.0 ├── https://github.com/chalk/supports-color?sponsor=1 │ └── supports-color@8.1.1 ├── https://github.com/sindresorhus/execa?sponsor=1 │ └── execa@5.1.1 ├── https://github.com/sponsors/dubzzz │ └── pure-rand@6.1.0 ├── https://github.com/sponsors/ljharb │ └── resolve@1.22.8, is-core-module@2.15.1, function-bind@1.1.2, supports-preserve-symlinks-flag@1.0.0 ├── https://github.com/sindresorhus/emittery?sponsor=1 │ └── emittery@0.13.1 ├── https://opencollective.com/unts │ └── synckit@0.9.2, @pkgr/core@0.1.1 └── https://github.com/sponsors/feross └── safe-buffer@5.2.1
and the audit details are:
`# npm audit report
debug <=2.6.8
Severity: high
debug Inefficient Regular Expression Complexity vulnerability - GHSA-9vvw-cc9w-f27h
Regular Expression Denial of Service in debug - GHSA-gxpj-cx7g-858c
Depends on vulnerable versions of ms
No fix available
node_modules/debug
noble >=0.0.3
Depends on vulnerable versions of debug
node_modules/noble
node-red-contrib-noble *
Depends on vulnerable versions of noble
node_modules/node-red-contrib-noble
ms <2.0.0
Severity: moderate
Vercel ms Inefficient Regular Expression Complexity vulnerability - GHSA-w9mr-4mfr-499f
No fix available
node_modules/ms
4 vulnerabilities (1 moderate, 3 high)
Some issues need review, and may require choosing
a different dependency.`
I'm battling this already a week and got out of ideas and out of google searches to fight it guys, need some ideas :/
I tried everything from running it on a clean system to, running it through node-red, through terminal, trying to install dependencies that were listed in google... nothing helped
I'm a newbie and I'm trying to learn IoT systems and currently working with Node-red, influxdb and grafana to visualize simple projects. I'm running on a small fitlet2 linux mint 22
I was trying to connect a Bluetooth weather station to the rest of my automation and looking through the internet and asking chatgpt, the easiest way seemed with BLE integration to a function to a database.
I tried to install different pallets in Node-red, for example "node-red-contrib-noble" which doesn't show all the tools after installation. "node-red-contrib-generic-ble" which can't be installed. If I try to install node-red-contrib-generic-ble from node-redd I'm getting this output:
`-----------------------------------------------------------
2024-11-10T18:28:24.621Z Install : node-red-contrib-generic-ble 4.0.3
2024-11-10T18:28:24.730Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-generic-ble@4.0.3
2024-11-10T18:28:44.723Z [err] npm
2024-11-10T18:28:44.724Z [err] WARN deprecated npmlog@5.0.1: This package is no longer supported.
2024-11-10T18:28:44.889Z [err] npm
2024-11-10T18:28:44.889Z [err] WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2024-11-10T18:28:44.981Z [err] npm WARN
2024-11-10T18:28:44.982Z [err] deprecated are-we-there-yet@2.0.0: This package is no longer supported.
2024-11-10T18:28:45.205Z [err] npm WARN
2024-11-10T18:28:45.205Z [err] deprecated abstract-socket@2.1.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
2024-11-10T18:28:45.320Z [err] npm WARN
2024-11-10T18:28:45.321Z [err] deprecated gauge@3.0.2: This package is no longer supported.
2024-11-10T18:28:52.966Z [err] npm
2024-11-10T18:28:52.966Z [err] ERR! code 1
2024-11-10T18:28:52.966Z [err] npm
2024-11-10T18:28:52.966Z [err] ERR! path /home/legendtaioh/.node-red/node_modules/@abandonware/noble
2024-11-10T18:28:52.975Z [err] npm ERR! command failed
2024-11-10T18:28:52.975Z [err] npm ERR! command sh -c node-gyp-build
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info it worked if it ends with ok
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info using node-gyp@3.8.0
2024-11-10T18:28:52.975Z [err] npm ERR! gyp info using node@18.19.1 | linux | x64
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! configure error
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack File "", line 1
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-10T18:28:52.975Z [err] npm ERR!
2024-11-10T18:28:52.975Z [err] gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
2024-11-10T18:28:52.975Z [err] npm ERR! gyp ERR! System Linux 6.8.0-48-generic
2024-11-10T18:28:52.975Z [err] npm
2024-11-10T18:28:52.976Z [err] ERR! gyp ERR! command "/usr/bin/node" "/home/legendtaioh/.node-red/node_modules/.bin/node-gyp" "rebuild"
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! cwd /home/legendtaioh/.node-red/node_modules/@abandonware/noble
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! node -v v18.19.1
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! node-gyp -v v3.8.0
2024-11-10T18:28:52.976Z [err] npm ERR! gyp ERR! not ok
2024-11-10T18:28:52.986Z [err]
2024-11-10T18:28:52.987Z [err] npm ERR! A complete log of this run can be found in:
2024-11-10T18:28:52.987Z [err] npm ERR!
2024-11-10T18:28:52.988Z [err] /home/legendtaioh/.npm/_logs/2024-11-10T18_28_27_051Z-debug-0.log
2024-11-10T18:28:53.026Z rc=1`
The output log is: 2024-11-10T18_28_27_051Z-debug-0.log
Or when i try to install it through the terminal i get:
`legendtaioh@legendtaioh-FitLet2:~$ sudo npm install node-red-contrib-generic-ble
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm WARN deprecated npmlog@5.0.1: This package is no longer supported.
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated abstract-socket@2.1.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated gauge@3.0.2: This package is no longer supported.
added 193 packages, and audited 204 packages in 51s
18 packages are looking for funding
run
npm fundfor details7 vulnerabilities (4 moderate, 3 high)
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run
npm auditfor details.`npm audit fix doesn't work and the npm fund details are:
legendtaioh ├── https://github.com/sponsors/isaacs │ └── glob@10.4.5, foreground-child@3.3.0, jackspeak@3.4.3, minimatch@9.0.5, path-scurry@1.11.1, signal-exit@4.1.0, rimraf@3.0.2 ├─┬ https://github.com/chalk/chalk?sponsor=1 │ │ └── chalk@4.1.2 │ └── https://github.com/chalk/ansi-styles?sponsor=1 │ └── ansi-styles@4.3.0, ansi-styles@5.2.0 ├─┬ https://opencollective.com/babel │ │ └── @babel/core@7.26.0 │ └── https://opencollective.com/browserslist │ └── browserslist@4.24.2, caniuse-lite@1.0.30001679, update-browserslist-db@1.1.1 ├── https://github.com/sponsors/jonschlinkert │ └── picomatch@4.0.2 ├── https://github.com/sponsors/sibiraj-s │ └── ci-info@4.0.0 ├── https://github.com/chalk/supports-color?sponsor=1 │ └── supports-color@8.1.1 ├── https://github.com/sindresorhus/execa?sponsor=1 │ └── execa@5.1.1 ├── https://github.com/sponsors/dubzzz │ └── pure-rand@6.1.0 ├── https://github.com/sponsors/ljharb │ └── resolve@1.22.8, is-core-module@2.15.1, function-bind@1.1.2, supports-preserve-symlinks-flag@1.0.0 ├── https://github.com/sindresorhus/emittery?sponsor=1 │ └── emittery@0.13.1 ├── https://opencollective.com/unts │ └── synckit@0.9.2, @pkgr/core@0.1.1 └── https://github.com/sponsors/feross └── safe-buffer@5.2.1and the audit details are:
`# npm audit report
debug <=2.6.8
Severity: high
debug Inefficient Regular Expression Complexity vulnerability - GHSA-9vvw-cc9w-f27h
Regular Expression Denial of Service in debug - GHSA-gxpj-cx7g-858c
Depends on vulnerable versions of ms
No fix available
node_modules/debug
noble >=0.0.3
Depends on vulnerable versions of debug
node_modules/noble
node-red-contrib-noble *
Depends on vulnerable versions of noble
node_modules/node-red-contrib-noble
ms <2.0.0
Severity: moderate
Vercel ms Inefficient Regular Expression Complexity vulnerability - GHSA-w9mr-4mfr-499f
No fix available
node_modules/ms
4 vulnerabilities (1 moderate, 3 high)
Some issues need review, and may require choosing
a different dependency.`
I'm battling this already a week and got out of ideas and out of google searches to fight it guys, need some ideas :/
I tried everything from running it on a clean system to, running it through node-red, through terminal, trying to install dependencies that were listed in google... nothing helped