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)
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.rbThen optionally
rm react-native-debugger.rbto clean up.
you make my day,
thank you alot.
Most helpful comment
cURL alternative to the solution above:
Then optionally
rm react-native-debugger.rbto clean up.