flatlogic/react-native-starter

Not able to run a code

rvsoni opened this issue · 0 comments

rvsoni commented

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$