2014-07-17 9 views
7

ich Karma mit dem folgenden Befehl zu installieren versuchen:Fehler beim Versuch, Karma zu installieren

C:\Program Files\nodejs>npm install karma 

Allerdings habe ich die folgende Fehlermeldung, wenn ich versuche Karma auf meiner Windows-8.1-Maschine zu installieren:

npm WARN optional dep failed, continuing [email protected] 
\ 


> [email protected] install C:\Program Files\nodejs\node_modules\karma\node_modules\sock 
et.io\node_modules\socket.io-client\node_modules\ws 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 

| 
C:\Program Files\nodejs\node_modules\karma\node_modules\socket.io\node_modules\s 
ocket.io-client\node_modules\ws>node "C:\Program Files\nodejs\node_modules\npm\b 
in\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
[email protected] node_modules\karma 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] 
├── [email protected] ([email protected], [email protected], [email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected] 
.1, [email protected], [email protected], [email protected], [email protected], [email protected], raw-bod 
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected] 
.0) 
└── [email protected] ([email protected], [email protected], [email protected], socket.io-c 
[email protected]) 
+0

Ich laufe auf das gleiche Problem, aber auf CentOS installieren. Ich denke, die Wurzel des Problems ist, dass fsevents für Mac-Ereignisse ist: https://www.npmjs.org/package/fsevents –

+0

Ich sehe keinen Fehler in der Ausgabe dort. Können Sie genauer sein, was Sie sehen, dass Sie denken, dass ein Fehler aufgetreten ist? (Die Ausgabe zeigt eine Warnung auf Windows, aber ich habe nie gesehen, dass diese Warnung ein echter Hinweis auf ein Problem ist.) – chrisg

+0

Hallo, bitte wählen Sie die Antwort für diese Frage .. Danke –

Antwort

5

Ich glaube nicht, dass es irgendwelche Fehler gibt.

brauchen nur Karma-cli

npm install -g karma-cli 

Dann Karma funktionieren sollte zu installieren.

+0

Es gibt wahrscheinlich nichts in "C: \ Program Files \ nodejs \ node_modules \ karma \ node_module \ sock et.io \ node_module \ socket.io-client \ node_modules \ ws "so dass es auf Build fehlschlägt – svarog

+0

In meinem Fall gibt es dieses Verzeichnis mit Dateien, aber es scheitert. – ahmadalibaloch

0

Ich hatte das gleiche Problem. In meinem Fall bestand die Lösung des Problems darin, den Befehl im richtigen Ordner zu verwenden. Ich war ein Ordner in der Hierarchie unten, wo ich hätte sein sollen.

Verwandte Themen