react-native-builder-bob icon indicating copy to clipboard operation
react-native-builder-bob copied to clipboard

error Invalid Version: latest

Open liujigang opened this issue 1 year ago • 2 comments

Description

/Users/user/.npm/_npx/7655a6858458ff34/node_modules/create-react-native-library/lib/utils/spawn.js:27 reject(new Error(stderr.trim())); ^

Error: error Invalid Version: latest. at ChildProcess. (/Users/user/.npm/_npx/7655a6858458ff34/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.20.4

Packages

  • [X] create-react-native-library
  • [ ] react-native-builder-bob

Selected options

❯ npx create-react-native-library@latest react-native-awesome-library ❯ Native module -> Kotlin & Objective-C -> Vanilla

[email protected]

Link to repro

no

Environment

❯ Node.js v18.20.4 ❯ npx --version ❯ 10.7.0 ❯ Mac 15.0.1

liujigang avatar Oct 24 '24 02:10 liujigang

I am having the same issue as well doing C++ turbo module vanilla

pixalynx avatar Oct 24 '24 14:10 pixalynx

I think there is a problem in the latest version, if I run this command (which uses the prev release) it works

npx [email protected] awesome-library

pixalynx avatar Oct 24 '24 14:10 pixalynx

I am having the same issue

verger-guo avatar Oct 31 '24 08:10 verger-guo

This is help for me https://stackoverflow.com/questions/79073524/react-native-library-command-not-creating-library

verger-guo avatar Oct 31 '24 08:10 verger-guo

Hey folks we've published [email protected] just recently. Could you try again and let me know? Closing the issue for now, please ping me if you still have the same problem.

atlj avatar Nov 15 '24 20:11 atlj

it was not working

tamdvyounetgroup avatar Dec 03 '24 04:12 tamdvyounetgroup

it was not working

change npm registry to https://registry.npmmirror.com/ and try again, its work for me

AriesHaw avatar Dec 03 '24 06:12 AriesHaw

This is help for me https://stackoverflow.com/questions/79073524/react-native-library-command-not-creating-library

It is work for me to add '--reactNativeVersion 0.77.0' params.

npx create-react-native-library@latest libname --reactNativeVersion 0.77.0

maomaoispan avatar Mar 11 '25 06:03 maomaoispan

Having the same issue when using codegenNativeCommands cc @satya164

mobinni avatar Apr 08 '25 14:04 mobinni

You can try clearing npx cache, e.g. npx clear-npx-cache

satya164 avatar Apr 08 '25 17:04 satya164