Npm Problem, kann nicht lesen Eigenschaft ‚geladen‘ undefinierten

stimmen
0

Ich kann nicht deinstallieren oder aktualisieren npm wie ich tun möchte. Das Problem folgt unten:

    Error: Failed to replace env in config: ${APPDATA}
        at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:415:13
        at String.replace (<anonymous>)
        at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:411:12)
        at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:389:7)
        at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:330:24
        at Array.forEach (<anonymous>)
        at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:328:23)
        at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
        at Conf.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:316:10)
        at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:115:16
    TypeError: Cannot read property 'loaded' of undefined
        at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:97:27)
        at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
        at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:78:20
        at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:225:22)
        at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:263:24
        at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:81:7
        at Array.forEach (<anonymous>)
        at Conf.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:80:13)
        at Conf.f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
        at Conf.emit (events.js:223:5)
    C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:97
      var doExit = npm.config.loaded ? npm.config.get('_exit') : true
                              ^

TypeError: Cannot read property 'loaded' of undefined
    at exit (C:\Program Files\nodejs\node_modules\←[4mnpm←[24m\lib\utils\error-handler.js:97:27)
    at process.errorHandler (C:\Program Files\nodejs\node_modules\←[4mnpm←[24m\lib\utils\error-handler.js:216:3)
←[90m    at process.emit (events.js:223:5)←[39m
←[90m    at process._fatalException (internal/process/execution.js:150:25)←[39m

Ich lese die Dokumentation und ich habe nicht etwas finden, das funktioniert. Ich habe versucht, die Datei .npmrc zu entfernen, aber es existiert nicht in dem Verzeichnis.

Veröffentlicht am 13/01/2020 um 23:54
quelle vom benutzer
In anderen Sprachen...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more