2016-12-22 3 views
1

Ich weiß nicht, wie Peer-Abhängigkeitsfehler unten beheben.Wie zu beheben Npm fehlt Peer-Abhängigkeit

[email protected]:~/Documents/git/py-cli_build_tools$ sudo npm -g list | grep eslint  
├─┬ [email protected] 
├─┬ [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ ├─┬ [email protected] 
├─┬ UNMET PEER DEPENDENCY [email protected] 
├─┬ [email protected] 
npm ERR! peer dep missing: [email protected]^2.2.3, required by [email protected] 

Wie Sie sehen, habe ich [email protected] installiert, die auf jeden Fall ^2.2.3 von

erforderlich erfüllen

eslint-config-airbnb. Es zeigt jedoch solche Fehlermeldung. Irgendeine Idee, um solch ein Problem zu lösen?

+0

Ist das das ganze Protokoll? Manchmal muss ich 'npm install' mit' --no-bin-links' ausführen, aber das passiert nur unter Windows. der npm-Aufruf ist genau so 'npm install --no-bin-links'. Ich hoffe es hilft –

+0

Danke. Es ist kein vollständiges Protokoll, da sie zu lang sind. Und ich habe die Antwort unten. Es stellt sich heraus, dass ich das Caret-Symbol falsch verstanden habe. –

Antwort