Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Missed installation requirement on Windows 10 #1237

Closed
EugeneDraitsev opened this issue Nov 16, 2019 · 21 comments
Closed

Missed installation requirement on Windows 10 #1237

EugeneDraitsev opened this issue Nov 16, 2019 · 21 comments

Comments

@EugeneDraitsev
Copy link

Description

When you try to install expo-cli on windows 10 without installed Python (v2.7, v3.5, v3.6, or v3.7) you will get an error.

Expected Behavior

npm install -g expo-cli works without an errors.

Observed Behavior

You will get an error. This is node-gyp issue, that part of expo-cli dependencies. You can read here about that.

Environment

  Expo CLI 3.7.1 environment info:
    System:
      OS: Windows 10
    Binaries:
      Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD

I think that it makes sense to add Python (v2.7, v3.5, v3.6, or v3.7) as requirement for windows 10 in documentation.

@ghost
Copy link

ghost commented Nov 17, 2019

I can confirm that installation attempt of the latest version of Expo throws node-gyp related errors. Log also mentions missing Visual Studio. Even though I have Python 2.7, I couldn't install the latest version, so I had to install v3.5.0 like this: npm i -g expo-cli@3.5.0

My install attempt quits with this final error below. Also, I have seen several people on Stack Overflow who got the same error, and one of them was a Mac user, so this problem might not be Windows specific.

38497 error code ELIFECYCLE
38498 error errno 1
38499 error libxmljs@0.19.7 install: `node-pre-gyp install --fallback-to-build --loglevel http`
38499 error Exit status 1
38500 error Failed at the libxmljs@0.19.7 install script.
38500 error This is probably not a problem with npm. There is likely additional logging output above.

And it also throws the following node-gyp related errors before the final message.

> dtrace-provider@0.8.8 install D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
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_modules\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 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

> libxmljs@0.19.7 install D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

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.gznode-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v79-win32-x64.tar.gznode-pre-gyp WARN Tried to download(404): https://github.com/libxmljs/libxmljs/releases/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/libxmljs/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_modules\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 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--loglevel=http" "--module=D:\\Documents\\npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release\\xmljs.node" "--module_name=xmljs" "--module_path=D:\\Documents\\npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd D:\Documents\npm\node_modules\expo-cli\node_modules\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.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=D:\Documents\npm\node_modules\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> (D:\Documents\npm\node_modules\expo-cli\node_modules\node-pre-gyp\lib\util\compile.js: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/child_process.js:283:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Documents\\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 D:\Documents\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
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)

@AbassLanre
Copy link

I can confirm that latest Expo version throws node-gyp related errors. Log also mentions missing Visual Studio. Even though I have Python 2.7, I can't install the latest version of Expo. So I had to install v3.5.0. My install attempt quits with this final error below. Also, I have seen several people on Stack Overflow who got the same error, and one of them was a Mac user, so this might not be Windows specific.

38497 error code ELIFECYCLE
38498 error errno 1
38499 error libxmljs@0.19.7 install: `node-pre-gyp install --fallback-to-build --loglevel http`
38499 error Exit status 1
38500 error Failed at the libxmljs@0.19.7 install script.
38500 error This is probably not a problem with npm. There is likely additional logging output above.

And it also throws the following node-gyp related errors before the final message.

> dtrace-provider@0.8.8 install D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
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_modules\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 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Documents\npm\node_modules\expo-cli\node_modules\dtrace-provider
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

> iltorb@2.4.4 install D:\Documents\npm\node_modules\expo-cli\node_modules\iltorb
> node ./scripts/install.js || node-gyp rebuild

> libxmljs@0.19.7 install D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

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.gznode-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v79-win32-x64.tar.gznode-pre-gyp WARN Tried to download(404): https://github.com/libxmljs/libxmljs/releases/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/libxmljs/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_modules\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 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--loglevel=http" "--module=D:\\Documents\\npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release\\xmljs.node" "--module_name=xmljs" "--module_path=D:\\Documents\\npm\\node_modules\\expo-cli\\node_modules\\libxmljs\\build\\Release" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd D:\Documents\npm\node_modules\expo-cli\node_modules\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.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=D:\Documents\npm\node_modules\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> (D:\Documents\npm\node_modules\expo-cli\node_modules\node-pre-gyp\lib\util\compile.js: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/child_process.js:283:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Documents\\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 D:\Documents\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
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=D:\Documents\npm\node_modules\expo-cli\node_modules\libxmljs\build\Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)

I have this exact issue

@anatula
Copy link

anatula commented Nov 18, 2019

I had this problem in Windows 10, to be able to install the lastest version (I had no choice since it broke the current one). I had to install the latest version of Python (3.8.0) and then run npm install --global --production windows-build-tools as administrator (as explained here), then I was able to run again: npm install expo-cli --global to install the version 3.8.0 of the expo-cli

@fson
Copy link
Contributor

fson commented Nov 18, 2019

The problem seems to be that prebuilt binaries for the libxmljs depency are not available for Node v13.x.x yet. We'll look into this – it might make sense for us to eliminate this dependency in favor of a pure JS library such as xml2js.

To work around this installation issue on Windows there are two alternatives:

  • use Node v12 LTS, Node v10 LTS, (or until the end of 2019, Node v8 LTS). Pre-built binaries of the dependency are available so build tools like Python are not necessary.
  • when using Node v13, you can install build dependencies as detailed in this comment

@ghost
Copy link

ghost commented Nov 18, 2019

The problem seems to be that prebuilt binaries for the libxmljs depency are not available for Node v13.x.x yet. We'll look into this – it might make sense for us to eliminate this dependency in favor of a pure JS library such as xml2js.

To work around this installation issue on Windows there are two alternatives:

  • use Node v12 LTS, Node v10 LTS, (or until the end of 2019, Node v8 LTS). Pre-built binaries of the dependency are available so build tools like Python are not necessary.
  • when using Node v13, you can install build dependencies as detailed in this comment

I downgraded my Node to v12.13.0 LTS and then tried to install latest Expo, but it throw the same errors again. So I reverted back to Expo v3.5.0.

@tim92109
Copy link

Same issue.

@MasterTeus
Copy link

MasterTeus commented Nov 19, 2019

Description

When you try to install expo-cli on windows 10 without installed Python (v2.7, v3.5, v3.6, or v3.7) you will get an error.

Expected Behavior

npm install -g expo-cli works without an errors.

Observed Behavior

You will get an error. This is node-gyp issue, that part of expo-cli dependencies. You can read here about that.

Environment

  Expo CLI 3.7.1 environment info:
    System:
      OS: Windows 10
    Binaries:
      Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD

I think that it makes sense to add Python (v2.7, v3.5, v3.6, or v3.7) as requirement for windows 10 in documentation.

[RESOLVED] npm i -g expo-cli@3.5.0

@omar-bakhsh
Copy link

the best way to download without Errores is with yarn
1- first download node js LTS
2- then download yarn from yarn. com
3- download git bash is better than cmd or node terminal
4- Type this code to download expo :

yarn add expo

@GollyJer
Copy link

GollyJer commented Nov 20, 2019

@omar-bakhsh
This is an issue with the libxmljs package not having prebuilt binaries to download during install. It has nothing to do with the package manager (yarn vs npm) used.

[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/7] ⠠ libxmljs
[-/7] ⠠ waiting...
[3/7] ⠐ sharp
[-/7] ⠐ waiting...
error C:\Users\Jeremy\AppData\Local\Yarn\Data\global\node_modules\libxmljs: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --loglevel http
Arguments: 
Directory: C:\Users\Jeremy\AppData\Local\Yarn\Data\global\node_modules\libxmljs
Output:
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-v72-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v72-win32-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v72-win32-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for libxmljs@0.19.7 and node@12.9.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.19.7/node-v72-win32-x64.tar.gz 

Notice it's trying to get node-v72-win32-x64.tar.gz which isn't in their releases section.

image

@AmriApps
Copy link

same issue in Mac OS

@jhenrich
Copy link

Same issue here. Currently running it in a gitlab pipeline

@MukeshKalaga
Copy link

fuck this shit man

@MukeshKalaga
Copy link

same issue.
did anyone had a successful installation

@Abel13
Copy link

Abel13 commented Nov 21, 2019

I solved trying:

yarn add expo
npm install expo-cli --global

@yasirsultan242
Copy link

dnt do any thing just npm install expo-cli@3.5.0 ,run this command and it works dnt go for updated version it has some errors

@jhenrich
Copy link

jhenrich commented Nov 22, 2019

dnt do any thing just npm install expo-cli@3.5.0 ,run this command and it works dnt go for updated version it has some errors

Well worked partly for me, the previous error is gone but now this one shows up:

[06:36:11] Unable to find an existing Expo CLI instance for this directory, starting a new one... [06:36:16] Starting Metro Bundler on port 19001. [06:36:20] Tunnel ready. [06:36:20] Publishing to channel 'default'... [06:36:21] _xdl(...).ProjectUtils.readConfigJsonAsync is not a function

Well even with 3.4.1 it does not work anymore

Maybe this helps: https://stackoverflow.com/a/58989858/4318778

@brentvatne
Copy link
Member

hey folks, sorry for the hassle, i am investigating this now

@brentvatne
Copy link
Member

expo-cli@3.5.0 will work now

we also published expo-cli@3.9.0 and changed the dependency policy between expo-cli and @expo/xdl so that old versions of expo-cli can't be broken by new releases @expo/xdl. on expo-cli@3.9.0 we no longer require libxmljs

@saadheikh
Copy link

i am facing same error while installing latest version of expo

@knoami
Copy link

knoami commented Dec 5, 2019

I am facing the same error

@brentvatne brentvatne reopened this Dec 5, 2019
@brentvatne
Copy link
Member

i don't think this should be happening on latest expo-cli, if you think you are encountering a similar problem please create a new issue and follow the issue template, thanks!

@expo expo locked as resolved and limited conversation to collaborators Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests