question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error by Update "node-red-contrib-modbus"

See original GitHub issue

Hello I get the following error when updating “node-red-contrib-modbus” via the palette management of Node Red. Is my environment broken or is something really missing here? If yes, how can I correct it?

`

2022-09-27T19:45:16.049Z Installieren : node-red-contrib-modbus 5.23.2

2022-09-27T19:45:15.897Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-modbus@5.23.2 2022-09-27T19:45:16.419Z [err] npm 2022-09-27T19:45:16.420Z [err]
2022-09-27T19:45:16.420Z [err] WARN 2022-09-27T19:45:16.420Z [err]
2022-09-27T19:45:16.420Z [err] config 2022-09-27T19:45:16.420Z [err] production Use --omit=dev instead. 2022-09-27T19:45:26.446Z [err] npm 2022-09-27T19:45:26.446Z [err]
2022-09-27T19:45:26.447Z [err] ERR! 2022-09-27T19:45:26.447Z [err]
2022-09-27T19:45:26.447Z [err] code 2022-09-27T19:45:26.447Z [err] 1 2022-09-27T19:45:26.447Z [err] npm 2022-09-27T19:45:26.447Z [err]
2022-09-27T19:45:26.447Z [err] ERR! 2022-09-27T19:45:26.447Z [err]
2022-09-27T19:45:26.448Z [err] path 2022-09-27T19:45:26.448Z [err] /config/node-red/node_modules/@serialport/bindings 2022-09-27T19:45:26.449Z [err] npm 2022-09-27T19:45:26.450Z [err]
2022-09-27T19:45:26.450Z [err] ERR! 2022-09-27T19:45:26.450Z [err] command failed 2022-09-27T19:45:26.450Z [err] npm 2022-09-27T19:45:26.450Z [err]
2022-09-27T19:45:26.450Z [err] ERR! 2022-09-27T19:45:26.450Z [err]
2022-09-27T19:45:26.450Z [err] command 2022-09-27T19:45:26.450Z [err] sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild 2022-09-27T19:45:26.451Z [err] npm 2022-09-27T19:45:26.451Z [err]
2022-09-27T19:45:26.451Z [err] ERR! 2022-09-27T19:45:26.451Z [err] prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=x64 libc=musl platform=linux) 2022-09-27T19:45:26.451Z [err] npm 2022-09-27T19:45:26.451Z [err]
2022-09-27T19:45:26.451Z [err] ERR! 2022-09-27T19:45:26.451Z [err] gyp info it worked if it ends with ok 2022-09-27T19:45:26.451Z [err] npm 2022-09-27T19:45:26.451Z [err]
2022-09-27T19:45:26.451Z [err] ERR! 2022-09-27T19:45:26.452Z [err] gyp info using node-gyp@9.0.0 2022-09-27T19:45:26.452Z [err] npm 2022-09-27T19:45:26.452Z [err]
2022-09-27T19:45:26.452Z [err] ERR! 2022-09-27T19:45:26.452Z [err] gyp info using node@16.16.0 | linux | x64 2022-09-27T19:45:26.452Z [err] npm 2022-09-27T19:45:26.452Z [err]
2022-09-27T19:45:26.452Z [err] ERR! 2022-09-27T19:45:26.452Z [err] gyp ERR! find Python 2022-09-27T19:45:26.452Z [err] npm 2022-09-27T19:45:26.453Z [err]
2022-09-27T19:45:26.453Z [err] ERR! 2022-09-27T19:45:26.453Z [err] gyp ERR! find Python checking Python explicitly set from command line or npm configuration 2022-09-27T19:45:26.453Z [err] npm 2022-09-27T19:45:26.453Z [err]
2022-09-27T19:45:26.453Z [err] ERR! 2022-09-27T19:45:26.453Z [err] gyp ERR! find Python - “–python=” or “npm config get python” is “/usr/bin/python3” 2022-09-27T19:45:26.453Z [err] npm 2022-09-27T19:45:26.453Z [err]
2022-09-27T19:45:26.453Z [err] ERR! 2022-09-27T19:45:26.453Z [err] gyp ERR! find Python - “/usr/bin/python3” is not in PATH or produced an error 2022-09-27T19:45:26.454Z [err] npm 2022-09-27T19:45:26.454Z [err]
2022-09-27T19:45:26.454Z [err] ERR! gyp ERR! find Python Python is not set from environment variable PYTHON 2022-09-27T19:45:26.454Z [err] npm ERR! gyp ERR! find Python checking if “python3” can be used 2022-09-27T19:45:26.454Z [err] npm ERR! gyp ERR! find Python - “python3” is not in PATH or produced an error 2022-09-27T19:45:26.454Z [err] npm ERR! gyp ERR! find Python checking if “python” can be used 2022-09-27T19:45:26.454Z [err] npm ERR! 2022-09-27T19:45:26.454Z [err] gyp ERR! find Python - “python” is not in PATH or produced an error 2022-09-27T19:45:26.454Z [err] npm 2022-09-27T19:45:26.457Z [err] ERR! gyp ERR! find Python 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python ********************************************************** 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python. 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python you can try one of the following options: 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python - Use the switch --python=“/path/to/pythonexecutable” 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python: 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python npm config set python “/path/to/pythonexecutable” 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python For more information consult the documentation at: 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python ********************************************************** 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! find Python 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! configure error 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:406:5) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:478:16) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! System Linux 5.15.67 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/@serialport/bindings 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! node -v v16.16.0 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0 2022-09-27T19:45:26.457Z [err] npm ERR! gyp ERR! not ok 2022-09-27T19:45:26.458Z [err] 2022-09-27T19:45:26.458Z [err] npm 2022-09-27T19:45:26.458Z [err]
2022-09-27T19:45:26.458Z [err] ERR! 2022-09-27T19:45:26.458Z [err] A complete log of this run can be found in: 2022-09-27T19:45:26.458Z [err] npm 2022-09-27T19:45:26.458Z [err]
2022-09-27T19:45:26.458Z [err] ERR! 2022-09-27T19:45:26.459Z [err] /root/.npm/_logs/2022-09-27T19_45_16_372Z-debug-0.log 2022-09-27T19:45:26.468Z rc=1`

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
frenckcommented, Sep 28, 2022

This adaptation will then come with the next add-on update?

yes

0reactions
mathiaslehmanncommented, Sep 28, 2022

Thanks for the explanation. So if I understand it correctly, the official modules are updated with the official updates of the add-on like it happened here 2 days ago #1449 .This adaptation will then come with the next add-on update?

Thank you very much and sorry for the questions but I’m not that good with these things yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation of node-red-contrib-modbus fails - General
Hi everyone,. On July'20, I installed for a first time the nodeRED, and the node-red-contrib-modbus module in a win10 PC.
Read more >
Failed to install: node-red-contrib-modbus - General
The problem I have had when trying to load node-red-contrib-modbus. It gives me the following error. Failed to install: node-red-contrib- ...
Read more >
Unable to install node-red-contrib-modbus - General
Hi guys, I'm having issues getting this installed and have ran out of ideas on how to get it to work. So far...
Read more >
Error in node-red-contrib-modbus installation in windows ...
I tried to install node-red-contrib-modbus in node-red in windows machine and a got the following errors: node.js version is 14.4.0 LTS
Read more >
Problem with install node-red-contrib-modbus - General
Hello , please you can to help , I have this error And Not can to Install Modbus Contrib in a Raspberry ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found