NPM auf RaspberryPi geht nicht?
Guten Tag,
ich nutze viel NodeJS, leider kann ich auf meinem RaspberriPi kein npm nutzen, ich muss daher alles auf meinem PC installieren und dann inklusive node module hochladen. Wie fix ich NPM? Fehler:
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/agent.js:114:44)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:5:33)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/agent.js:161:25)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
1 Antwort
Wenn du deine node_modules von einem Windows-PC auf ein Linux-System kopierst, dann kann das nicht funktionieren. Zum Teil sind da noch Binaries dabei, die halt nicht plattformübergreifend funktionieren. Der Fehler hat auch nichts mit NPM zu tun, sondern ist ein Ausschnitt von einem uns unbekannten Script, dass du nicht genannt hast.
Bitte also ein paar mehr Infos, welches Projekt du da nutzen willst, was du genau gemacht hast, etc.
Wie gesagt, das hat nichts mit NPM zu tun. Das ist irgendwas in deinen kopierten node_modules.
Bitte also ein paar mehr Infos, welches Projekt du da nutzen willst, was du genau gemacht hast, etc.
Eventuell auch noch, welcher Fehler kommt, wenn du die Dependencies auf deinem Raspi probierst zu installieren.
Ich müsste die module nicht kopieren wenn npm funktionieren würde. Daher will ich npm reparieren, damit ich das nicht mehr machen muss.
ja, ja, ja, aber jetzt gib doch endlich mal ein paar Infos. Mit "npm geht nicht" kann man gar nix anfangen.
Dann wiederhole ich mich halt nochmals:
Bitte also ein paar mehr Infos, welches Projekt du da nutzen willst, was du genau gemacht hast, etc.
Eventuell auch noch, welcher Fehler kommt, wenn du die Dependencies auf deinem Raspi probierst zu installieren (sprich: npm probierst zu nutzen).
das ist mir bewusst, ich will aber npm fixen