Đang cố gắng để cài đặt MongoDB hoặc một loại chồn toàn cầu dẫn đến một sự phụ thuộc ngang hàng thiếu cho KerberosKerberos MongoDB ngang phụ thuộc
Jamess-MacBook-Pro:ka2 jamessherry$ npm install -g mongodb
/usr/local/lib
└─┬ [email protected]
└── UNMET PEER DEPENDENCY [email protected]~0.0
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.0 but none was installed.
Jamess-MacBook-Pro:ka2 jamessherry$ npm install -g mongodb
- [email protected] node_modules/mongodb/node_modules/kerberos/node_modules/nan
- [email protected] node_modules/mongodb/node_modules/kerberos
/usr/local/lib
└─┬ [email protected]
└── UNMET PEER DEPENDENCY [email protected]~0.0
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.0 but none was installed.
Jamess-MacBook-Pro:ka2 jamessherry$ npm install -g mongoose
/usr/local/lib
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── UNMET PEER DEPENDENCY [email protected]~0.0
│ ├── [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]
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.0 but none was installed.
Có ai biết làm thế nào để đi về sửa chữa đó? Nếu bạn cài đặt thủ công thì bạn phải thực hiện điều đó trên mọi bản cập nhật.
Ngoài ra, tôi không thể tìm thấy một nơi để báo cáo lỗi ...
Thử cài đặt cục bộ thay vì trên toàn cầu.Toàn cầu thực sự chỉ có ý nghĩa cho các tiện ích dòng lệnh anyway. – JohnnyHK
Tôi cũng gặp lỗi này, tôi đề nghị bạn mở một vấn đề về JIRA [ở đây] (https://jira.mongodb.org/browse/NODE/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues- bảng điều khiển) vì họ không sử dụng Github để theo dõi các vấn đề khiến việc báo cáo lỗi trở nên khó khăn hơn. Hoặc đi đến phòng gitter [ở đây] (https://gitter.im/mongodb/node-mongodb-native). Tác giả của trình điều khiển nodejs sẽ trả lời các câu hỏi về chúng. –
Bạn đã thử bỏ qua cảnh báo chưa? Ít nhất mã của tôi dường như đang chạy tốt cho đến nay mà không đi qua những rắc rối rõ ràng của việc cài đặt các mô-đun Kerberos. Đoán của tôi là công cụ kerberos chỉ được sử dụng để xác thực mà bạn có thể không cần tùy thuộc vào trường hợp sử dụng của bạn. – mthierer