skip to Main Content

I’m trying to run npx expo install react-native-web react dom and keep getting this error returned:

CommandError: Project root directory not found (working directory...)

Any insight as to what I am doing wrong here?

I tried running the npx command to install expo in react native in VS code.

2

Answers


  1. It means that you are not running your command in your project directory. As you mentioned that you are using VS Code, Open project then open terminal and run command

    Login or Signup to reply.
  2. First you need to start a project by running this command:

    npx create-expo-app@latest
    

    Then you can run:

    npx expo install expo-dev-client
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search