Node JS / Npm Fehlermeldung?
Ich wollte Robot JS installieren mit Windows (Unter Linux klappt alles super )
jedoch tritt diese Fehlermeldung auf und ich habe schon viel versucht.
Nichts hilft. https://pastebin.com/1VfKGnXx
Habe auch beim installieren von NodeJS darauf geachtet das es diese Python/C++ Pakete oder so mit installiert.
PS C:\Users\maxmustermann\Desktop\robotjs> npm install robotjs
Es installiert kurz Robot Js und dann löscht es sich wieder und dann erscheint das
Part 1:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code 1
npm ERR! path C:\Users\maxmustermann\Desktop\robotjs\node_modules\robotjs
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@18.3.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\maxmustermann\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2022 (17.2.32602.215) found at:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - missing any VC++ toolset
npm ERR! gyp ERR! find VS checking VS2019 (16.11.32602.291) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - missing any VC++ toolset
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
Die ganze Fehlermeldung passt hier nicht rein.
2 Antworten

Hast du Visual Studio installiert?
Einschließlich der Bibliotheken für VC++ / Desktop-Entwicklung für C++, bzw. hast du diese Bibliotheken nachinstalliert (über den Visual-Studio-Installer)?
found "Visual Studio C++ core features"
weist darauf hin, dass die grundlegenden (core) Bibliotheken für C++ installiert sind,
missing any VC++ toolset
darauf, dass keine weitergehenden Bibliotheken für C++ installiert sind.

Windows-Button oder die Lupe daneben anklicken, Visual Studio Installer eintippen, Programmsymbol anklicken
Im Fenster, das sich dann öffnet, auf "Ändern" klicken (neben der Visual-Studio-Version, die du verwenden willst)
Im Fenster, das sich dann öffnet, "Desktopentwicklung mit C++", "Entwicklung für die universelle Windows-Plattform" oder was auch immer Robot JS haben will, suchen und das Kästchen daneben anhaken, ebenso alles anhaken, von dem du denkst, dass du es gebrauchen könntest (es sei denn, der Platz auf deiner Festplatte geht wirklich zur Neige)
Dann rechts unten auf "Ändern" klicken
(Was genau Robot JS hier haben will, wüsste ich nicht; wenn das hier keiner beantwortet, müsstest du eine neue Frage genau hierzu stellen oder dich an ein Forum wenden, das auf Robot JS spezialisiert ist. Es könnte sogar sein, dass Robot JS noch etwas haben will, das Visual Studio Installer hier nicht erwähnt und das du dir direkt bei Microsoft oder als "Erweiterung" von Visual Studio herunterladen musst.)

die meisten dauerfehler die ich kenne ist, das die versionen die benutzt werden unter der neuen node.js version gar nciht mehr erlaubt sind oder anderweitig ersetzt .
also guck bei den angegeben modulen
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@18.3.0 | win32 | x64
ob die für das modul gängig sind
und im schlimmsten fall wird das nur was mit Visual Studio 2017 . da die dann die benötigten alten tools haben .
ggf die alten redistributables oder oder downloaden . vielleicht hilft das schon
weil :
npm ERR! gyp ERR! find VS checking VS2022 (17.2.32602.215) found at:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - missing any VC++ toolset
Ja Visual Studio 2022, hatte es gestern installiert und irgendwas mit C in der Hoffnung das die Fehlermeldung weggeht xD
Ich brauche ja sonst kein Visual Studio da ich kein C kann.
Kenne mich da auch nicht gut aus in der IDE.
Kannst du mir sagen was genau da fehlt ?
Wonach soll ich suchen