Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run "brew" command in windows..?

It shows "'brew' is not recognized as an internal or external command" in windows command prompt.

enter image description here

I am trying to install codeigniter-reactjs-example from github, where first command is brew. How to run this command to install that project in Windows..?

like image 375
ArunValaven Avatar asked Jul 03 '17 13:07

ArunValaven


People also ask

Can I use brew in Windows?

Homebrew is MacOS only command line installer application and it doesn't exist for Windows. The Windows alternatives are: Chocolatey. Npackd.

Can Homebrew be install on Windows 10?

When enabled, you are able to download and run the command line interface for various Linux distributions as a Windows app. The recent release of Homebrew 2.0 brings official support for Linux and Windows 10 (through WSL). This is based on a fork of Homebrew known as Linuxbrew.

Does Brew work on WSL?

The Homebrew package manager may be used on Linux and Windows Subsystem for Linux (WSL). Homebrew was formerly referred to as Linuxbrew when running on Linux or WSL. It can be installed in your home directory, in which case it does not use sudo.


2 Answers

Edit: Homebrew is also usable on Windows Subsystem for Linux (WSL) since version 2.0.0 (released February 2019), as detailed by @VonC's answer below. The instructions for installation/use are available at:

  • https://docs.brew.sh/Homebrew-on-Linux

Homebrew is MacOS only command line installer application and it doesn't exist for Windows.

The Windows alternatives are:

  • Chocolatey
  • Npackd
  • Scoop
  • OneGet for Windows 10

Source: https://laracasts.com/discuss/channels/laravel/homebrew-install-on-windows-os

like image 61
Vivek Avatar answered Oct 27 '22 12:10

Vivek


It shows "'brew' is not recognized as an internal or external command" in windows command prompt.

Not anymore, 19 months later (Feb. 2019, compared to July 2017)

At least, not on Windows 10, in a WSL (Windows Subsystem for Linux) session.
As mentioned by Mike McQuaid

Homebrew 2.0.0 has been released (at @FOSDEM!) with official Linux and Windows 10 WSL support, brew cleanup running automatically (opt-out with HOMEBREW_NO_INSTALL_CLEANUP), no more options in Homebrew/core and no longer running on OS X 10.8 and older.

See Homebrew 2.0.0.

“Homebrew on Linux” is called “Linuxbrew”.
You can install it in your home directory, so it does not require sudo, and use it to install software that your host distribution’s package manager does not provide. Linuxbrew uses its own repository for formulae: Linuxbrew/homebrew-core.

So again, this is not native Windows support, but Linux (through the WSL layer, on Windows 10).

like image 36
VonC Avatar answered Oct 27 '22 12:10

VonC