2017-09-16 2 views
0
module.js:471 
     throw err; 
     ^
    Error: Cannot find module 'process-nextick-args' 
     at Function.Module._resolveFilename (module.js:469:15) 
     at Function.Module._load (module.js:417:25) 
     at Module.require (module.js:497:17) 
     at require (internal/module.js:20:19) 
     at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v6.11.2/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23) 
     at Module._compile (module.js:570:32) 
     at Object.Module._extensions..js (module.js:579:10) 
     at Module.load (module.js:487:32) 
     at tryModuleLoad (module.js:446:12) 
     at Function.Module._load (module.js:438:3) 
    Uh oh! npm had a problem! { Error: Command failed: "/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm" --version 
    module.js:471 
     throw err; 

Der Versuch, FCC erste Herausforderung node.js zu tun, sondern stecken bei der Installation und Überprüfung npm. versuchte den Fehler zu googlen, um es zu debuggen, aber fand nur Fragen keine Antwort darauf! Könnte jemand helfen?Nicht in der Lage npm zu installieren, module.js Fehler immer die Herausforderung node.js FCC tun

+0

Versuchen Sie eine andere Version des Pakets zu installieren? –

Antwort

1

Es sieht aus wie ein Bug auf npm. Ich empfehle, Node.js und npm zu aktualisieren.

Run folgenden Befehle auf der Konsole:

$ nvm install 6 # This installs Node.js version 6.11.3, current latest version of Node.js 6.x 
$ npm install --global npm # Install latest version of npm 

I found this issue happen on other learners of Free Code Camp

+0

großartig! Danke, es hat funktioniert. Ich habe node.js und npm beide aktualisiert :) – Anamika

Verwandte Themen