2016-03-25 15 views
5

Tôi đã cố gắng cài đặt các cài đặt trước babel và babel. Nhưng tôi dường như gặp phải một lỗi nghiêm trọng ngăn cản tôi cài đặt.UNMET PEER DEPENDENCY [email protected]

tôi gõ vào lệnh sau:

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

nhưng nó từ chối tôi với các thông báo lỗi sau:

└─┬ 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 

những gì có vẻ là vấn đề?

+0

này có thể được gây ra bởi [sự thất bại trái-pad] (http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm)? Babel dường như phụ thuộc vào nó. –

+0

@ FrédéricHamidi: Gói pad bên trái đã được khôi phục và nếu tôi nhớ lại chính xác, Babel đã đẩy bản phát hành không còn dựa vào nó nữa. Dù bằng cách nào, nó không phải là vấn đề ở đây! –

Trả lời

1

Tôi cũng phải thêm phụ thuộc cho jspm để trình cài đặt bộ nạp babel được cài đặt chính xác.

… 
"dependencies": { 
    "babel-loader": "^6.2.7", 
    "jspm": "^0.16.48", 
    … 
} 
Các vấn đề liên quan