nodejs-mobile / nodejs-mobile-react-native

Node.js for Mobile Apps React Native plugin
https://nodejs-mobile.github.io
MIT License
179 stars 43 forks source link

How to add third-party modules to nodejs-assets/nodejs-project? #82

Open clydee-geng opened 1 month ago

clydee-geng commented 1 month ago

I generated a node_modules directory by executing npm i xxx under nodejs-assets/nodejs-project, but when executing sync in android studio, an error was reported:

Build file 'C:\Users\xxx\Desktop\DMZ_rn\node_modules\nodejs-mobile-react-native\android\build.gradle' line: 300
A problem occurred evaluating project ':nodejs-mobile-react-native'.
> Unsupported operating system for nodejs-mobile native builds: Windows 11
staltz commented 1 month ago

The error has nothing to do with third-party modules, but instead, about your host operating system:

Unsupported operating system for nodejs-mobile native builds: Windows 11

Read more: https://nodejs-mobile.github.io/docs/guide/faq#are-nodejs-native-addons-supported

clydee-geng commented 1 month ago

The error has nothing to do with third-party modules, but instead, about your host operating system:该错误与第三方模块无关,而是与您的主机操作系统有关:

Unsupported operating system for nodejs-mobile native builds: Windows 11

Read more: https://nodejs-mobile.github.io/docs/guide/faq#are-nodejs-native-addons-supported了解更多https://nodejs-mobile.github.io/docs/guide/faq#are-nodejs-native-addons-supported

Excuse me,Is there any plan to support Windows system in the future?