skip to Main Content

I am trying to run some app in react native,

when I run npx expo start

got this error:

>npx expo start
Starting project at C:reactmy-app
Error: Cannot find module 'metro/src/lib/createWebsocketServer'
Require stack:
- C:reactmy-appnode_modules@expoclibuildsrcstartservermetrorunServer-fork.js
- C:reactmy-appnode_modules@expoclibuildsrcstartservermetroinstantiateMetro.js
- C:reactmy-appnode_modules@expoclibuildsrcstartservermetroMetroBundlerDevServer.js
- C:reactmy-appnode_modules@expoclibuildsrcstartserverDevServerManager.js
- C:[email protected]
- C:[email protected]
- C:reactmy-appnode_modules@expoclibuildbincli
- C:reactmy-appnode_modulesexpobincli

I tried to fix this by npx expo install, but not working.
I am new in this react world and I am little lost.
I know that there was some upgrade before from npm to npx…
I tried also below commands but not working.

npm install
npx expo --version
npx expo install
npm install expo@latest

Can somebody share some info how to run / install dependencies / upgrade expo ?

Thank you

my expo version is:
npx expo –version
0.17.3

2

Answers


  1. Chosen as BEST ANSWER

    fixed by:

    npx expo install --fix
    

  2. thanks! I was looking fro this answer everywhere!!!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search