ich entfernt finden und neu installiert node.js oftnpm installieren: Fehler: nicht Modul 'tough-Cookie'
> node -v
4.5.0
> npm -v
3.3.6
Einmal betreibe ich den Befehl npm install request
ich die folgende Fehlermeldung erhalten:
Error: Cannot find module 'tough-cookie'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\Generic User\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\cookies.js:3:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Generic User\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "request"
npm ERR! node v4.5.0
npm ERR! npm v3.3.6
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'tough-cookie'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
auch
Sie mir wahrscheinlich sagen
> npm update -g npm
ich bekomme den gleichen Fehler für diesen Befehl auszuführen.
Ich habe versucht, den gleichen Befehl mit und ohne die Existenz der package.json zu führen. Ich bekomme immer den gleichen Fehler – Khalid