Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest 0.34.1 fails to create a Native module on Linux : blocking #480

Closed
1 of 2 tasks
Productivix opened this issue Oct 9, 2023 · 2 comments
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@Productivix
Copy link

Description

I wanted to create a react-native module as usual,
$ npx create-react-native-library@latest module_mlkit_barcode-scanning
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
...
✔ What type of library do you want to develop? › Native module
✔ Which languages do you want to use? › Java & Objective-C
⠏ Generating example app

then I got the following errors :
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN deprecated [email protected]: support for ECMAScript is superseded by uglify-js as of v3.13.0

  • Downloading template
    ✔ Downloading template
  • Copying template
    /home/william/.npm/_npx/dea611a43221eddd/node_modules/graceful-fs/polyfills.js:265
    if (!chownErOk(er)) throw er
    ^

Error: ENOENT: no such file or directory, chmod '/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/modules/module_mlkit_barcode-scanning/example/android/gradlew'
at Object.chmodSync (node:fs:1991:3)
at Object.chmodSync (/home/william/.npm/_npx/dea611a43221eddd/node_modules/graceful-fs/polyfills.js:263:21)
at ReadStream. (/home/william/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/tools/copyFiles.js:83:19)
at ReadStream.emit (node:events:517:28)
at emitCloseNT (node:internal/streams/destroy:132:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
errno: -2,
syscall: 'chmod',
code: 'ENOENT',
path: '/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/modules/module_mlkit_barcode-scanning/example/android/gradlew'
}

Node.js v18.18.0
/home/william/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/spawn.js:27
reject(new Error(stderr.trim()));
^

Error: npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN deprecated [email protected]: support for ECMAScript is superseded by uglify-js as of v3.13.0

  • Downloading template
    ✔ Downloading template
  • Copying template
    /home/william/.npm/_npx/dea611a43221eddd/node_modules/graceful-fs/polyfills.js:265
    if (!chownErOk(er)) throw er
    ^

Error: ENOENT: no such file or directory, chmod '/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/modules/module_mlkit_barcode-scanning/example/android/gradlew'
at Object.chmodSync (node:fs:1991:3)
at Object.chmodSync (/home/william/.npm/_npx/dea611a43221eddd/node_modules/graceful-fs/polyfills.js:263:21)
at ReadStream. (/home/william/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/tools/copyFiles.js:83:19)
at ReadStream.emit (node:events:517:28)
at emitCloseNT (node:internal/streams/destroy:132:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
errno: -2,
syscall: 'chmod',
code: 'ENOENT',
path: '/home/william/logiciels/logiciels-windows/dev_RN-Node-GIT/modules/module_mlkit_barcode-scanning/example/android/gradlew'
}

Node.js v18.18.0
at ChildProcess. (/home/william/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/spawn.js:27:16)
at Object.onceWrapper (node:events:632:26)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)

Node.js v18.18.0

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

✔ What type of library do you want to develop? › Native module
✔ Which languages do you want to use? › Java & Objective-C

Link to repro

No response

Environment

Fetching system and libraries information...
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
Memory: 51.78 GB / 62.62 GB
Shell:
version: 5.2.15
path: /bin/bash
Binaries:
Node:
version: 18.18.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: /usr/local/bin/yarn
npm:
version: 10.1.0
path: /usr/local/bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 11.0.20
path: /usr/bin/javac
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

@Productivix Productivix added the bug Something isn't working label Oct 9, 2023
@Productivix Productivix changed the title latest 0.34.1 afils to create a Native module latest 0.34.1 fails to create a Native module Oct 9, 2023
@Productivix Productivix changed the title latest 0.34.1 fails to create a Native module latest 0.34.1 fails to create a Native module on Linux : blocking Oct 9, 2023
@satya164
Copy link
Member

satya164 commented Oct 9, 2023

This is a bug in CLI. Unfortunately we cannot do anything on our side. It'll be fixed when this is released: react-native-community/cli#2096

@satya164 satya164 closed this as completed Oct 9, 2023
@Productivix
Copy link
Author

thank you , my only solution is to start a project on Windows, clone on GitHub and clone the repo on Linux ....long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants