codebytere / codebytere/node-mac-permissions
Support for cross platform projects
- Ngôn ngữ chính
- Objective-C++
- Star
- 240
- Fork
- 49
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I am developing an application that is prepared to work on Windows, Mac, and Linux with the same code, of course, Mac requests permissions that do not exist in the other operating systems and that is why I am using this library.
However, when I try to run `npm install` on the project on a Windows or a Linux device, there is an error saying that this library is incompatible:
```
C:\GitHub\cross>npm install
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for node-mac-permissions@2.3.0: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Koraniar\AppData\Local\npm-cache\_logs\2023-09-04T21_41_03_261Z-debug-0.log
```
-
I know I can force the installation using `npm install --force`, but there are some side effects I would like to avoid like having version conflicts, bypassing security vulnerabilities, etc.
Is there a way to allow this library to be installed in different operating systems? Like allowing it to be installed and do nothing once it is imported If the platform is not darwin like [mac-screen-capture-permissions](https://github.com/karaggeorge/mac-screen-capture-permissions).
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với metadata của package đằng sau kiểm tra nền tảng chỉ dành cho darwin của npm và so sánh hành vi cài đặt với mac-screen-capture-permissions. Được coi là hoàn thành khi npm install thành công trên Windows và Linux, việc import thư viện trên đó không làm gì một cách an toàn, và hành vi trên macOS vẫn khả dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos, nodejs
- Lĩnh vực
- operating-systems
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100