Skip to content

Unknown command 'start' #2557

Open
Open
@virajdoshi11

Description

Environment

Debugger attached.
Debugger attached.
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.26100
  CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-1235U
  Memory: 757.61 MB / 7.69 GB
Binaries:
  Node:
    version: 22.11.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-242.23339.11.2421.12550806
  Visual Studio: Not Found
Languages:
  Java: 17.0.13
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: latest
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.2
    wanted: 0.76.2
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.76.3 is now available (your project is running on v0.76.2).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.76.3
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.2&to=0.76.3  
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...

Description

I am trying to make a bare react native project (without expo) and when I try to run my app with the command npm start or npx react-native run-android I get the error: unknown command 'start' or unknown command 'run-android'.

These are the things I have tried:

  1. Deleting the node_modules folder and re-installing
  2. Making a completely new project
  3. The code always warns about punycode depreciation so I tried to mitigate that
  4. Converting files into module type from the commonjs type
  5. Any other solution mentioned on stackoverflow

Reproducible Demo

You can just create a bare react native project but I think maybe its an issue with my environment or setting so you can download this repository:
https://github.com/virajdoshi11/Investigo

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions