docs: fix cannot finde module 'which'
This commit is contained in:
30
docs/troubleshooting/missing-which-module.md
Normal file
30
docs/troubleshooting/missing-which-module.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# ❌ Fehler: Cannot find module 'which'
|
||||
|
||||
## 🧭 Kontext
|
||||
|
||||
Beim Starten der App mit nodeMapService(Windows Dienst) oder "npm start" nach dem ohne
|
||||
`package-lock.json`-Datei trat folgender Fehler auf: 
|
||||
|
||||
```
|
||||
Error: Cannot find module 'which'
|
||||
```
|
||||
|
||||
Dies bedeutet, dass die Bibliothek `which` im `node_modules`-Verzeichnis fehlt, obwohl sie
|
||||
möglicherweise früher vorhanden war.
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Lösung
|
||||
|
||||
Da `which` nicht mehr im aktuellen `node_modules` verzeichnis vorhanden war:
|
||||
|
||||
1. **Altes funktionierendes Projekt geöffnet**
|
||||
→ Dort war die Bibliothek im `node_modules`-Verzeichnis noch vorhanden.
|
||||
|
||||
2. **Verzeichnis `node_modules/which` gezippt**
|
||||
→ als `which.zip` gespeichert.
|
||||
|
||||
3. **ZIP-Datei auf den Zielserver übertragen**
|
||||
→ Manuell entpackt in das entsprechende `node_modules/which`-Verzeichnis.
|
||||
|
||||
4. **App gestartet → Funktioniert wieder.**
|
||||
Reference in New Issue
Block a user