Valet-plus: Error: invalid option: --with-http2 when installing on Mojave

Created on 3 Feb 2019  路  3Comments  路  Source: weprovide/valet-plus

I am running a clean install (having removed all traces of Valet+) and I'm running into the following error when running valet install:

[nginx] Installing
Usage: brew install [options] formula

Install formula.

formula is usually the name of the formula to install, but it can be specified
in several different ways.

Error: invalid option: --with-http2

In Brew.php line 107:

Brew was unable to install [nginx].

Has anyone else run into this issue?

Most helpful comment

I was able to install valet by editing this file:
~/.composer/vendor/weprovide/valet-plus/cli/Valet/Nginx.php

Edit line 43
$this->brew->installOrFail('nginx', ['--with-http2']);
to
$this->brew->installOrFail('nginx', ['']);

All 3 comments

I'm getting this issue as well.

Same here. Fresh installation of Mojave (10.14.2).

I was able to install valet by editing this file:
~/.composer/vendor/weprovide/valet-plus/cli/Valet/Nginx.php

Edit line 43
$this->brew->installOrFail('nginx', ['--with-http2']);
to
$this->brew->installOrFail('nginx', ['']);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Igloczek picture Igloczek  路  4Comments

rdorck picture rdorck  路  3Comments

zcuric picture zcuric  路  4Comments

Sironheart picture Sironheart  路  3Comments

mantebal picture mantebal  路  4Comments