roei133
November 17, 2019, 9:26am
1
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:
}
1 Like
wodin
November 17, 2019, 3:19pm
2
Hi.
See if installing node 12.x or 10.x works better than 13.x.
reggie3
November 17, 2019, 4:57pm
3
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
wodin
November 18, 2019, 7:30am
4
If I run expo init
using expo-cli 3.7.1
on Linux I get the following in yarn.lock
:
minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6"
integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==
dependencies:
safe-buffer "^5.1.2"
yallist "^3.0.0"
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.
How/where were you running expo?
I’m also unable to upgrade expo-cli
higher than 3.4.1
using Windows 10.
It’s definitely related to the libxml.js library. In my case it wants an older version of python than installed on my machine.
This problem didn’t happen with with versions of expo-cli =< 3.4.1
.
And if I install a version of Python it likes it then is requiring the install of Visual Studio.
wodin
November 19, 2019, 2:46am
7
Can you try installing WSL and then installing node and expo-cli within that? There are some notes about how to do that here:
https://docs.expo.io/versions/latest/distribution/building-standalone-apps/#1-install-expo-cli
hi @wodin . Thanks for the help.
Same problem… but different.
wodin
November 19, 2019, 7:48am
9
OK, so it still wants to compile stuff. In order to set up a basic environment that will allow you to compile C code, do this:
apt install build-essential
If it still fails, please post the error as text like this:
```
output
here
```
The text is easier to search for if someone else has the same problem and can also be easier for me to copy’n’paste into Google if necessary
roei133
November 19, 2019, 8:48am
10
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
wodin
November 19, 2019, 9:13am
11
Hi @roei133
Can you try installing WSL and Ubuntu as per my earlier post . Then, at the bash prompt, run:
apt install build-essential
Then download and install the Linux version of node
.
Then install expo-cli
within Ubuntu.
Then try expo init
, expo start
, etc.
1 Like
roei133
November 19, 2019, 9:30am
12
what is WSL ?? and why expo suddenly doesn’t work with windows 10 ?
wodin
November 19, 2019, 9:57am
13
Hi
WSL is Windows Subsystem for Linux .
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.
roei133
November 19, 2019, 10:11am
14
do you think that expo isnt good as the react native cli ?
what do you suggest me to use ?
wodin
November 19, 2019, 10:18am
15
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.
That worked. Thanks wodin. At least I know it works in linux.
I’d prefer to not have to move my local databases and Docker over to WSL just to get up and running again. I’m sticking with 3.4.1 for now.
This definitely needs to be looked at by someone at Expo for Windows though. Others are also having the issue.
opened 04:48PM - 19 Nov 19 UTC
closed 11:51AM - 20 Nov 19 UTC
outdated
# READ THIS FIRST, PLEASE!
We're looking to keep questions on our forums and … bug reports on the GitHub repo -- please choose whichever you feel is more appropriate for your issue:
- For questions and help using Expo CLI, post in our community forums (log in with your Expo developer account): https://forums.expo.io/c/expo-cli
- File a bug on the Expo CLI repo (for bugs related to the Expo CLI tools): https://github.com/expo/expo-cli/issues/new
- File a bug on the main Expo repo (for other bugs): https://github.com/expo/expo/issues/new
- Request a feature on Canny: https://expo.canny.io/feature-requests
Thanks for reporting the issue you found with Expo CLI!
# Required format for issues
Please make our job easier by filling this template out to completion.
## Description
Error while updating expo-cli to latest version
## Expected Behavior
I was trying to update expo-cli to version 3.7.1 using npm install -g expo-cli, instead of updating, the command line produced an unexpected error.
## Observed Behavior
What actually happened when you performed the above actions?
If there's an error message, please paste the _full terminal output and error message_ in this code block:
```
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modu
les\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\
nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1028:16)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\kuldeep\AppData\Roaming\npm\node_modules\expo-cli\node_mod
ules\dtrace-provider
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
info looking for cached prebuild @ C:\Users\kuldeep\AppData\Roaming\npm-cache\_p
rebuilds\89bf70-iltorb-v2.4.4-node-v79-win32-x64.tar.gz
info found cached prebuild
info unpacking @ C:\Users\kuldeep\AppData\Roaming\npm-cache\_prebuilds\89bf70-il
torb-v2.4.4-node-v79-win32-x64.tar.gz
info unpack resolved to C:\Users\kuldeep\AppData\Roaming\npm\node_modules\expo-c
li\node_modules\iltorb\build\bindings\iltorb.node
info unpack required C:\Users\kuldeep\AppData\Roaming\npm\node_modules\expo-cli\
node_modules\iltorb\build\bindings\iltorb.node successfully
info install Successfully installed iltorb binary!
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.
19.7/node-v79-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.
19.7/node-v79-win32-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/libxmljs/libxmljs/r
eleases/download/v0.19.7/node-v79-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for libxmljs@0.19.7 and node@13.1
.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/libxmlj
s/libxmljs/releases/download/v0.19.7/node-v79-win32-x64.tar.gz
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modu
les\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\
nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1028:16)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--f
allback-to-build" "--loglevel=http" "--module=C:\\Users\\kuldeep\\AppData\\Roami
ng\\npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release\\xmljs.n
ode" "--module_name=xmljs" "--module_path=C:\\Users\\kuldeep\\AppData\\Roaming\\
npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release" "--napi_ver
sion=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-
v79"
gyp ERR! cwd C:\Users\kuldeep\AppData\Roaming\npm\node_modules\expo-cli\node_mod
ules\libxmljs
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.e
xe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j
s configure --fallback-to-build --loglevel=http --module=C:\Users\kuldeep\AppDat
a\Roaming\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release\xmljs.no
de --module_name=xmljs --module_path=C:\Users\kuldeep\AppData\Roaming\npm\node_m
odules\expo-cli\node_modules\libxmljs\build\Release --napi_version=5 --node_abi_
napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\kuldeep\AppDat
a\Roaming\npm\node_modules\expo-cli\node_modules\node-pre-gyp\lib\util\compile.j
s:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1028:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:283:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kuld
eep\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\node-pre-gyp\\
bin\\node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
node-pre-gyp ERR! cwd C:\Users\kuldeep\AppData\Roaming\npm\node_modules\expo-cli
\node_modules\libxmljs
node-pre-gyp ERR! node -v v13.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libxmljs@0.19.7 install: `node-pre-gyp install --fallback-to-build --lo
glevel http`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs@0.19.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kuldeep\AppData\Roaming\npm-cache\_logs\2019-11-19T16_36_3
0_088Z-debug.log
Installing Expo CLI failed. You can install it manually with:
npm install --global expo-cli
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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kuldeep\AppData\Roaming\npm-cache\_logs\2019-11-19T16_36_3
0_213Z-debug.log
```
## Environment
Please run `expo diagnostics` in the project folder and copy the output here:
Also specify:
- Phone/emulator/simulator platform, model and version:
## Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.
vuyo
December 5, 2019, 2:43pm
17
My error is exactly like this how did you fix it?
roei133
December 5, 2019, 3:10pm
18
Hi, if u wanna fix it so do what I did …
Delete node & delete expo and restart ur machine.
Install:
node v12.10.0
Install:
npm install -g expo-cli@3.5.0
Smile and give me like!!
vuyo
December 6, 2019, 12:43pm
20
Error goes like this anyone knows please help guys