2016-03-25 33 views
5

Ich habe versucht, Babel und Babel Presets zu installieren. Aber mir scheint ein kritischer Fehler aufgefallen zu sein, der mich von der Installation abhält.UNMET PEER ABHÄNGIGKEIT [email protected]

ich in dem folgenden Befehl eingegeben:

npm install --save-dev babel-core babel-loader babel-preset-es2015 babel-preset-stage-0 babel-preset-react 

aber es lehnt mich mit der folgenden Fehlermeldung:

└─┬ UNMET PEER DEPENDENCY [email protected] 
    └─┬ [email protected] 
    ├─┬ [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
    └─┬ [email protected] 
     └── [email protected] 

npm WARN optional Skipping failed optional dependency /babel/chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
npm WARN [email protected] requires a peer of [email protected]^6.0.0 but none was installed. 
npm WARN [email protected] No repository field. 
npm WARN [email protected] No license field. 
npm ERR! code 1 

was scheint das Problem zu sein?

+0

Könnte dies durch [links-pad Fiasko] (http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm) verursacht werden? Babel scheint davon abhängig zu sein. –

+0

@ FrédéricHamidi: Das linke Pad-Paket wurde wiederhergestellt, und wenn ich mich recht erinnere, hat Babel bereits eine Veröffentlichung veröffentlicht, die nicht mehr darauf angewiesen ist. So oder so, es sollte hier nicht das Problem sein! –

Antwort

1

Ich musste zusätzlich eine Abhängigkeit für jspm hinzufügen, damit der Babel-Lader korrekt installiert wird.

… 
"dependencies": { 
    "babel-loader": "^6.2.7", 
    "jspm": "^0.16.48", 
    … 
} 
Verwandte Themen