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

Invalid version:latest issue on react native #2548

Open
KRISH826 opened this issue Nov 6, 2024 · 2 comments
Open

Invalid version:latest issue on react native #2548

KRISH826 opened this issue Nov 6, 2024 · 2 comments

Comments

@KRISH826
Copy link

KRISH826 commented Nov 6, 2024

error Invalid Version: latest.
TypeError: Invalid Version: latest
at new SemVer (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules\semver\classes\semver.js:38:13)
at compare (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules\semver\functions\compare.js:3:3)
at Object.lt (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules\semver\functions\lt.js:2:29)
at createTemplateUri (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules@react-native-community\cli\build\commands\init\version.js:44:47)
at createProject (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules@react-native-community\cli\build\commands\init\init.js:338:60)
at Object.initialize [as func] (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules@react-native-community\cli\build\commands\init\init.js:418:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command.handleAction (C:\Users\KRISHNENDU\AppData\Local\npm-cache_npx\2788f5fbd47acb89\node_modules@react-native-community\cli\build\index.js:124:9)
info Run CLI with --verbose flag for more details.

@journey-xt
Copy link

You should specify the RN version;
like :npx @react-native-community/cli@latest init MyApp --version 0.76.0

@journey-xt
Copy link

Of course, this is a mistake made by CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants