question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation failed with "Exit code: 128" for latest "react-native-gesture-handler@1.5.6"

See original GitHub issue

I am trying to install the latest version in react-native-gesture-handler using yarn add react-native-gesture-handler but the yarn hangs out on hammerjs.

Terminal output:

$ yarn add react-native-reanimated react-native-gesture-handler
yarn add v1.21.1
[1/4] 🔍  Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: clone https://github.com/naver/hammer.js.git /Users/(user-name)/Library/Caches/Yarn/v6/.tmp/9ee0a27027db93fad58e8dddb6592fbc
Directory: /Users/(user-name)/Documents/ReactNative/Projects/VacancyReward
Output:
Cloning into '/Users/(user-name)/Library/Caches/Yarn/v6/.tmp/9ee0a27027db93fad58e8dddb6592fbc'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Dependencies

“react”: “16.9.0”, “react-native”: “0.61.5”, “react-native-gesture-handler”: “1.5.6”

For now, using the older version i.e. "react-native-gesture-handler": "1.5.3"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
bruiglesiascommented, Feb 5, 2020

Same error here:

42 error errno -4058 43 error enoent Error while executing: 43 error enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git 43 error enoent 43 error enoent 43 error enoent spawn git ENOENT 44 error enoent This is related to npm not being able to find a file. 45 verbose exit [ -4058, true ]

1reaction
bruiglesiascommented, Feb 10, 2020

yarn add react-native-gesture-handler@1.4.0 solved for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting react-native-gesture-handler module was not found ...
When running the debugging(react-native run-ios) for IOS, the above error is occurring on react-native-gesture-handler.
Read more >
react-native-gesture-handler - npm
Experimental implementation of a new declarative API for gesture handling in react-native. Latest version: 2.8.0, last published: 2 months ...
Read more >
Installation | React Native Gesture Handler - Software Mansion
Since the library uses native support for handling gestures, it requires an extended installation to the norm. If you are starting a new...
Read more >
Getting started - React Navigation
Installing dependencies into an Expo managed project​. In your project directory, run: npx expo install react-native-gesture-handler react-native-reanimated ...
Read more >
How to use the react-native-gesture-handler.State.FAILED ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found