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

Not able to run a code #114

Open
rvsoni opened this issue Jan 31, 2024 · 0 comments
Open

Not able to run a code #114

rvsoni opened this issue Jan 31, 2024 · 0 comments

Comments

@rvsoni
Copy link

rvsoni commented Jan 31, 2024

Run npm install --force and start project for Android,

Code does not start

rsoni@fedora:~/Downloads/react-native-starter-master$ npm run start

> react-native-starter@3.2.2 start
> react-native start

warn Package @react-native/metro-config has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native/metro-config/package.json
error Option "--port" is missing. Run CLI with --verbose flag for more details.
Error: Option "--port" is missing
    at /home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/tools/assertRequiredOptions.js:51:13
    at Array.forEach (<anonymous>)
    at assertRequiredOptions (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/tools/assertRequiredOptions.js:40:11)
    at Command.handleAction (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:181:42)
    at Command.listener (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:315:8)
    at Command.emit (node:events:526:35)
    at Command.parseArgs (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:651:12)
    at Command.parse (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:474:21)
    at setupAndRun (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:267:24)
    at run (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:206:11)
rsoni@fedora:~/Downloads/react-native-starter-master$ npm run run:android

> react-native-starter@3.2.2 run:android
> react-native run-android

warn Package @react-native/metro-config has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native/metro-config/package.json
error Option "--mode" is missing. Run CLI with --verbose flag for more details.
Error: Option "--mode" is missing
    at /home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/tools/assertRequiredOptions.js:51:13
    at Array.forEach (<anonymous>)
    at assertRequiredOptions (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/tools/assertRequiredOptions.js:40:11)
    at Command.handleAction (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:181:42)
    at Command.listener (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:315:8)
    at Command.emit (node:events:514:28)
    at Command.parseArgs (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:651:12)
    at Command.parse (/home/rsoni/Downloads/react-native-starter-master/node_modules/commander/index.js:474:21)
    at setupAndRun (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:267:24)
    at run (/home/rsoni/Downloads/react-native-starter-master/node_modules/@react-native-community/cli/build/index.js:206:11)
rsoni@fedora:~/Downloads/react-native-starter-master$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant