react-native-starter icon indicating copy to clipboard operation
react-native-starter copied to clipboard

Not able to run a code

Open rvsoni opened this issue 2 years ago • 0 comments

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

Code does not start

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

> [email protected] 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

> [email protected] 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$ 

rvsoni avatar Jan 31 '24 03:01 rvsoni