2014-07-17 19 views
7

Tôi cố gắng để cài đặt Karma sử dụng lệnh sau:báo lỗi khi cố gắng cài đặt Karma

C:\Program Files\nodejs>npm install karma 

Tuy nhiên, tôi nhận được lỗi sau khi tôi cố gắng để cài đặt Karma trên Windows 8.1 máy của tôi:

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], ne[email protected], [email protected], [email protected] 
.0) 
└── [email protected] ([email protected], [email protected], [email protected], socket.io-c 
[email protected]) 
+0

Tôi đang gặp sự cố tương tự nhưng cài đặt trên CentOS. Tôi nghĩ rằng gốc của vấn đề là fsevents là cho các sự kiện Mac: https://www.npmjs.org/package/fsevents –

+0

Tôi không thấy bất kỳ lỗi nào trong đầu ra ở đó. Bạn có thể cụ thể hơn về những gì bạn thấy mà làm cho bạn nghĩ rằng một lỗi đã xảy ra? (Đầu ra không hiển thị cảnh báo trên Windows, nhưng tôi chưa bao giờ thấy cảnh báo đó là dấu hiệu thực sự của sự cố.) – chrisg

+0

Xin chào, vui lòng chọn câu trả lời cho câu hỏi này .. Cảm ơn –

Trả lời

5

Tôi không nghĩ có bất kỳ lỗi nào.

Chỉ cần cài đặt nghiệp-cli

npm install -g karma-cli 

Rồi nghiệp nên làm việc.

+0

Có thể không có gì trong "C: \ Program Files \ nodejs \ node_modules \ karma \ node_modules \ sock et.io \ node_modules \ socket.io-client \ node_modules \ ws "vì vậy nó không thành công trên xây dựng – svarog

+0

Trong trường hợp của tôi có thư mục này với các tập tin nhưng nó không thành công. – ahmadalibaloch

0

Tôi gặp vấn đề tương tự. Trong trường hợp của tôi, giải pháp cho vấn đề là sử dụng lệnh trong thư mục bên phải. Tôi là một thư mục trong phân cấp dưới đây, nơi tôi nên có được.

Các vấn đề liên quan