'Uncommon homebrew error: "Unknown command: switch"
I am in the process of trying to restart some legacy project that demands the use of an older version of openssl.
I have found good input on the issue here, which worked on one of my machines but not the other, which gives me the following error:
$ brew switch openssl 1.0.2t
Error: Unknown command: switch
The error does not seem to be very common, nothing helpful is showing up on a google/stackoverflow search.
What I have tried so far:
- resolved all warnings shown by
brew doctor - run
brew update && brew upgrade - updated Xcode Command Line Tools
- reinstalled openssl
What can I do to fix this?
Solution 1:[1]
I just used sudo:
sudo brew switch dart 2.16.0
and close the vs code and start again. That's it and run without any errors.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ahmadreza Shamimi |
