Skip to content

[BUG]: unable to create a new project with its src folder #483

@bilalkhan-tech

Description

@bilalkhan-tech

react-native environment setup

  • I verified that I have not react-native-cli installed globally and be up to date about the React Native environment setup.

Description

error An unexpected error occurred: Command failed with exit code 1: npm install
(node:19005) ExperimentalWarning: CommonJS module /usr/local/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/local/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm error node_modules/react-query
npm error peer react-query@"^3.39.2" from [email protected]
npm error node_modules/reactotron-react-query
npm error dev reactotron-react-query@"^1.0.4" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/apple/.npm/_logs/2025-06-12T16_56_58_671Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/apple/.npm/_logs/2025-06-12T16_56_58_671Z-debug-0.log.

Version

"react-native": "0.78.2",

Do you use TypeScript?

Yes

On which OS this issue appear on?

None

Desktop OS

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions