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
fixed by:
thanks! I was looking fro this answer everywhere!!!