2017-07-05 3 views
-1

I Knoten durch brew install node installiert haben, hat Knoten installiert wurden, jedoch npm zeigt Fehler nachFehler beim Abruf während npm Installation

npm install -g create-react-native-app

module.js:487 

    throw err; 
^

Error: Cannot find module '../lib/utils/unsupported.js' 
    at Function.Module._resolveFilename (module.js:485:15) 
    at Function.Module._load (module.js:437:25) 
    at Module.require (module.js:513:17) 
    at require (internal/module.js:11:18) 
    at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21 
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:92:3) 
    at Module._compile (module.js:569:30) 
    at Object.Module._extensions..js (module.js:580:10) 
    at Module.load (module.js:503:32) 
    at tryModuleLoad (module.js:466:12) 
+1

Welchen Befehl haben Sie ausgeführt, um diesen Fehler anzuzeigen? –

+0

Ich starte 'npm install -g create-react-native-app' und habe diesen Fehler erhalten. – Vishal

Antwort

-1

laufen Versuchen Garn installieren.

brew install yarn

yarn global add npm

npm --version

Hoffnung, das funktioniert.

+0

Alternativ kann auch die Deinstallation von node/npm und die anschließende Neuinstallation funktionieren. – MinimalMaximizer

Verwandte Themen