i try to npm start but all the time the same error …
if someone know treat this issue it will help .
bdw, i installed latest ver of node and expo cli globaly.
internal/modules/cjs/loader.js:895
throw err;
^
Error: Cannot find module ‘C:\Users\Roei\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
at Function.Module._load (internal/modules/cjs/loader.js:785:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1143:12)
at internal/main/run_main_module.js:16:11 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}
I received the same error after attempting to upgrade to the newest expo version using npm install -g expo-cli
node version is 12.8
npm version 6.10.2
platform: Windows 10
Installing via the command line as admin did not solve the issue either
Checking the path shows that expo-cli is not being installed
Additionally, I was unable to install the package locally
Actual error:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:713:15)
at Function.Module._load (internal/modules/cjs/loader.js:618:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}```
The relevant portion of the npm install failure appears to be :
`Failed at the libxmljs@0.19.7 install script`
Which might be connected to this thread: https://github.com/libxmljs/libxmljs/issues/557
However, I do not see any mentions of minipass version 2.8.4 in the expo-cli yarn.lock file
So at least in my case it’s getting minipass 2.9.0. Pretty sure it should do the same on Windows.
I have not tried Expo on Windows, but there are three different environments that you could do it in and perhaps one of the others will work better for you.
In theory, using Ubuntu on WSL will work exactly like a native Linux machine, so that’s what I would try.
The other two options are CMD and PowerShell.
hi, that what i get all the time…and i use ver 3.4.1 coz it doesnt let me install the latest globlal.
i also use before node 12.x and it doesnt work also .
please help me .
E:\ReactNative\navigation_app>npm start
> @ start E:\ReactNative\navigation_app
> expo start
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ There is a new version of expo-cli available (3.8.0). │
│ You are currently using expo-cli 3.4.1 │
│ Install expo-cli globally using the package manager of your choice; for example: `npm install -g expo-cli` to get the latest version │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Starting project at E:\ReactNative\navigation_app
Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
ConfigUtils(...).configFilenameAsync is not a function
Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Roei\AppData\Roaming\npm-cache\_logs\2019-11-19T07_35_53_222Z-debug.log
I have never used expo on Windows and I am not part of the Expo team so anything I say is not Expo’s official policy, although I try not to say anything that is incorrect or misleading.
I am not saying that expo no longer works on Windows 10. I am saying that maybe it will work better for you if you try running it on WSL.
I think Expo is great as a CLI for React Native projects.
If I were running it on Windows I would probably run it on WSL, but I am not telling you that you must use WSL. I am just trying to suggest an alternative way of running expo because you are having problems with the way you are currently running it.