Brew update failed: untracked working tree files would be overwritten by merge

You need to do the following: cd $(brew –prefix) rm Library/Formula/argp-standalone.rb rm Library/Formula/cocot.rb And then do the git fetch origin git reset –hard origin/master brew update Basically, to explain a bit more: cd $(brew –prefix) tells cd to change the directory to whatever brew –prefix will output. If you try executing brew –prefix command you … Read more

What is the recommended way to install Node.js, nvm and npm on MacOS X?

Using homebrew install nvm: brew update brew install nvm source $(brew –prefix nvm)/nvm.sh Add the last command to the .profile, .bashrc or .zshrc file to not run it again on every terminal start. So for example to add it to the .profile run: echo “source $(brew –prefix nvm)/nvm.sh” >> ~/.profile If you have trouble with … Read more

What is the difference between brew install XXX and brew cask install XXX

Homebrew-Cask is an extension to Homebrew to install GUI applications such as Google Chrome or Atom. It started independently but its maintainers now work closely with Homebrew’s core team. Homebrew calls its package definition files “formulae” (British plural for “formula”). Homebrew-Cask calls them “casks”. A cask, just like a formula, is a file written in a Ruby-based … Read more

“ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

Running brew reinstall python@2 didn’t work for my existing Python 2.7 virtual environments. Inside them there were still ERROR:root:code for hash sha1 was not found errors. I encountered this problem after I ran brew upgrade openssl. And here’s the fix: $ ls /usr/local/Cellar/openssl …which shows 1.0.2t According to the existing version, run: $ brew switch … Read more

What is the difference/usage of homebrew, macports or other package installation tools? [closed]

MacPorts is the way to go. Like @user475443 pointed, MacPorts has many many more packages. With brew you’ll find yourself trapped soon because the formula you need doesn’t exist. MacPorts is a native application: C + TCL. You don’t need Ruby at all. To install Ruby on Mac OS X you might need MacPorts, so … Read more

Upgrade all the casks installed via Homebrew Cask

There is now finally an official upgrade mechanism for Homebrew Cask (see Issue 3396 for the implementation)! To use it, simply run this command: brew upgrade –cask However this will not update casks that do not have versioning information (version :latest) or applications that have a built-in upgrade mechanism (auto_updates true). To reinstall these casks … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)