Installation error node-red-node-arduino

Greetings, folks.

I am facing a problem when installing the "node-red-node-arduino" in the "manege palette" of Node-Red. Whenever I try to install through the graphical interface it throws the following error:

"Failed to install: node-red-node-arduino

Error: Install failed

Check the log for more information "

If anyone can help me, thank you very much.

Have you checked the log for more information?

Was in process of updating that very node this evening - version 0.1.0 will be on npm shortly with latest serialport and firmata handler so hopefully will play nicer with node 10 etc.

I run in the same error today. Installing no-red-node-arduino Fails - also after update/upgrade Raspberry pi. Some Information from the log file:

510 verbose about to build /home/pi/.node-red/node_modules/node-red-node-arduino
511 verbose node_modules/node-red-node-arduino unbuild
512 info preuninstall node-red-node-arduino@0.2.2
513 info uninstall node-red-node-arduino@0.2.2
514 verbose true,/home/pi/.node-red/node_modules,/home/pi/.node-red/node_modules unbuild node-red-node-arduino@0.2.2
515 info postuninstall node-red-node-arduino@0.2.2
516 error Error: Method Not Allowed
516 error at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
516 error at /usr/share/npm/lib/cache/add-named.js:203:12
516 error at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
516 error at FSReqWrap.oncomplete (fs.js:135:15)
517 error If you need help, you may report this entire log,
517 error including the npm and node versions, at:
517 error http://github.com/npm/npm/issues
518 error System Linux 4.14.98-v7+
519 error command "/usr/bin/node" "/usr/bin/npm" "i" "--unsafe-perm" "node-red-node-arduino"
520 error cwd /home/pi/.node-red
521 error node -v v8.11.1
522 error npm -v 1.4.21
523 error code E405
524 verbose exit [ 1, true ]

you need to upgrade node.js and npm in particular. npm 1.4.2 is somewhat broken.
If this is a Pi then use the upgrade script we provide.

Thank you very much, that gives hope for me! But where is the offered upgrade switch - I have no idea?

in the documentation > getting started > raspberry pi

Ok - I followed the given way....
The horrible lengthly command "bash <(curl...) will do Nothing. So I'm at the same point as before.

when you say the bash command (which you can copy and paste) does nothing, what do you mean?

It’s a lot easier to suggest what you could do if you describe what actually happens

sorry - "does nothing" means: after the Enter-key the Raspberry pi goes immediately back to prompt - without a visible action. What should be the result of this command?

pi@RaspKlar:~ $ bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

pi@RaspKlar:~ $

It should take quite a long time (quite a few minutes) and produce output showing progress along the way. Has the Pi got internet access? If not then it won't work. If it has then what happens if you just run the curl command
curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered

That should echo a whole load of stuff to the ternimal, ending with something like
if [ -e /tmp/update-nodejs-and-nodered ] && [ -s /tmp/update-nodejs-and-nodered ]; then sudo mv /tmp/update-nodejs-and-nodered /usr/bin/update-nodejs-and-nodered; fi

To Colin: Thank you for the hints, the pure curl command (ouside bash) did work and has installed the module. But later we have given up, because the Performance at Rapberry Pi is very poor.
It is usable, when the dashbord resides on a Laptop. But that's not the rigth way for our Children.

A Pi 3 is only just capable of running a browser, none of my Pis have a GUI, or any display at all in fact. The new Pi 4 should be much more capable in that area.

Bonjour , j'ai un problème je n'arrive pas à installer dans la mangere palette de node red voici le message
peut être que depuis que je suis passé sur windows 11 , y a t-il un rapport
"
Failed to install: node-red-node-arduino

Install failed

Check the log for more information"

VOICI Les erreurs

strong text2021-12-25T16:12:08.890Z Install : node-red-node-arduino 0.3.1

2021-12-25T16:12:09.218Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-arduino@0.3.1
2021-12-25T16:12:22.487Z [err] npm ERR! code 1
2021-12-25T16:12:22.487Z [err] npm ERR! path C:\Users\lufra.node-red\node_modules\firmata\node_modules@serialport\bindings
2021-12-25T16:12:22.488Z [err] npm ERR! command failed
2021-12-25T16:12:22.489Z [err] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-12-25T16:12:22.489Z [err] npm ERR! gyp info it worked if it ends with ok
2021-12-25T16:12:22.489Z [err] npm ERR! gyp info using node-gyp@8.3.0
2021-12-25T16:12:22.489Z [err] npm ERR! gyp info using node@16.13.1 | win32 | x64
2021-12-25T16:12:22.489Z [err] npm ERR! gyp info find Python using Python version 3.9.9 found at "C:\Users\lufra\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe"
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! find VS
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS looking for Visual Studio 2015
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS - not found
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS **************************************************************
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! find VS You need to install the latest version of Visual Studio
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS For more information consult the documentation at:
2021-12-25T16:12:22.489Z [err] npm
2021-12-25T16:12:22.489Z [err] ERR! gyp ERR! find VS GitHub - nodejs/node-gyp: Node.js native addon build tool
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! find VS **************************************************************
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! find VS
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! configure error
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
2021-12-25T16:12:22.489Z [err] npm
2021-12-25T16:12:22.489Z [err] ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
2021-12-25T16:12:22.489Z [err] npm
2021-12-25T16:12:22.489Z [err] ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.489Z [err] gyp ERR! stack at ChildProcess.emit (node:events:390:28)
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! System Windows_NT 10.0.22000
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2021-12-25T16:12:22.489Z [err] npm ERR! gyp ERR! cwd C:\Users\lufra.node-red\node_modules\firmata\node_modules@serialport\bindings
2021-12-25T16:12:22.489Z [err] npm ERR!
2021-12-25T16:12:22.490Z [err] gyp ERR! node -v v16.13.1
2021-12-25T16:12:22.490Z [err] npm ERR!
2021-12-25T16:12:22.490Z [err] gyp ERR! node-gyp -v v8.3.0
2021-12-25T16:12:22.490Z [err] npm ERR!
2021-12-25T16:12:22.490Z [err] gyp ERR! not ok
2021-12-25T16:12:22.497Z [err]
2021-12-25T16:12:22.497Z [err] npm ERR!
2021-12-25T16:12:22.498Z [err] A complete log of this run can be found in:
2021-12-25T16:12:22.498Z [err] npm ERR! C:\Users\lufra\AppData\Local\npm-cache_logs\2021-12-25T16_12_22_491Z-debug.log
2021-12-25T16:12:22.507Z rc=1

Did you follow the instructions in the error message?

When you installed nodejs did it give you an option to install the build tools? If so then did you select it?

Bonjour et merci pour vos retours
Non ,Nodejs ne m' a pas donné la possibilité d'installer les outils de génération

Exactly how did you install nodejs?

Bonjour , j'ai installé via le site nodejs.org , j'ai téléchargé la Dernière version LTS: 16.13.1 (includes npm 8.1.2) je suis sur Windows 11 Famille . pourtant je peux charger tous les autres modules sauf celui de arduino