Likely caused by a change reverted in Homebrew/brew#16684. Please do brew update and try again.
Warning: No available formula with the name "mongodb-community@4.0".
Error: No similarly named formulae found. Error: No available formula or cask with the name "python" - Stack Overflow
macos - Homebrew Error: No formulae found in taps - Stack Overflow
php - How to fix "No available formula" warning for Homebrew - Stack Overflow
Has mongodb-community@4.0 been removed?
Yesterday my mongo decided to die with the below error:
`Wrong mongod version","attr":{"error":"UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: BadValue: Invalid value for version, found 4.0, expected '4.4' or '4.2'. Contents of featureCompatibilityVersion document in admin.system.version: { _id: \"featureCompatibilityVersion\", version: \"4.0\" }. See https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility.)). If the current featureCompatibilityVersion is below 4.2, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/4.4/#upgrade-procedures." `
So I tried to uninstall mongodb-community entirely from my machine and any version that may have been there and install mongodb-community@4.0 in order to run `
db.adminCommand( { setFeatureCompatibilityVersion: "4.4" } )However when I run `brew install mongodb-community@4.0` I get the following:
`Warning: No available formula with the name "mongodb-community@4.0". Did you mean mongodb-community@5.0, mongodb-community@4.2, mongodb-community@4.4 or mongodb-community?
==> Searching for similarly named formulae...
These similarly named formulae were found:
mongodb/brew/mongodb-community@5.0 mongodb/brew/mongodb-community@4.2 mongodb/brew/mongodb-community@4.4 mongodb/brew/mongodb-community
To install one of them, run (for example):
brew install mongodb/brew/mongodb-community@5.0
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.`
I take it mongodb-community@4.0 has been removed? It still shows it as a command on their GitHub page. https://github.com/mongodb/homebrew-brew
Is there another way that I can get around this? Mongo will not start with this compatibility error.
If I remove the entire data folder for mongo and then install 4.4 it will run but then I don't have my data. Copying it back and starting the 4.4 again just results in the same error of compatibility.
Run this command in terminal:
Copyrm -fr $(brew --repo homebrew/core)
Then try:
Copy brew install python3
it will install python 3.9.
this has worked for me. use the exact version as such python@3.9
First search available packages using
Copybrew search python
Then install the version you want ex:
Copybrew install python@3.9
This worked for me.
run brew doctor
Warning: Some taps are not on the default git origin branch and may not receive updates. If this is a surprise to you, check out the default branch with: git -C $(brew --repo homebrew/core) checkout master
then run git -C $(brew --repo homebrew/core)
Run this command:
git -C $(brew --repo homebrew/core) checkout master
this will switch to master, then run
brew doctor
this should run without any error.
If there is no error you can install anything with brew install
ex: brew install wget
Have a look in the configuration file for your shell (~/.bash_profile, ~/.zshrc, or similar) and remove the offending items.
In my case I still had a reference to it in my export PATH line. Removing $(brew --prefix homebrew/php/php56)/bin from that line should clear those warnings on startup.
You can try with
$ brew install php72