React-native-debugger: Error on installation using brew: non-checksummed download not supported (0.10)

Created on 7 Jan 2021  路  6Comments  路  Source: jhen0409/react-native-debugger

React Native Debugger app version: -
React Native version: -
OS: MacBook Pro with M1 processor

While following the docs to install the debugger using brew (version 2.7.1) I got the following error:

brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 164 formulae.

Traceback (most recent call last):
'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.: 
Invalid usage: Non-checksummed download of react-native-debugger formula file from an arbitrary URL is unsupported!  (UsageError)

Most helpful comment

cURL alternative to the solution above:

curl -L https://raw.githubusercontent.com/Homebrew/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb > react-native-debugger.rb && brew install react-native-debugger.rb

Then optionally rm react-native-debugger.rb to clean up.

All 6 comments

FYI: brew install --cask react-native-debugger worked, for 0.11

Running into same issue. Not being able to debug my apps (RN0.61.5) is, of course, very very cumbersome.

EDIT: found a solution! 馃帀
Execute the following commands

wget https://raw.githubusercontent.com/Homebrew/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb;
brew install --HEAD -s react-native-debugger.rb

Got the solution from this article: https://dev.to/gjrdiesel/getting-around-brew-s-error-calling-non-checksummed-download-of-17fl

cURL alternative to the solution above:

curl -L https://raw.githubusercontent.com/Homebrew/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb > react-native-debugger.rb && brew install react-native-debugger.rb

Then optionally rm react-native-debugger.rb to clean up.

@kai-kb thanks for the tip!

Closing since this is fixed on the recent version and we can curl it directly

cURL alternative to the solution above:

curl -L https://raw.githubusercontent.com/Homebrew/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb > react-native-debugger.rb && brew install react-native-debugger.rb

Then optionally rm react-native-debugger.rb to clean up.

you make my day,
thank you alot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Clete2 picture Clete2  路  5Comments

Ashoat picture Ashoat  路  4Comments

arrygoo picture arrygoo  路  5Comments

AndrejGajdos picture AndrejGajdos  路  4Comments

usrbowe picture usrbowe  路  6Comments