PHP Mac composer 安装 valet

终端命令:
composer global require laravel/valet

输出
Changed current directory to /Users/apple/.composer
后,需要等待,等待…

成功后的日志:

Using version ^2.9 for laravel/valet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-mbstring (v1.15.0): Downloading (100%)         
  - Installing symfony/var-dumper (v5.0.6): Downloading (100%)         
  - Installing tightenco/collect (v6.18.3): Downloading (100%)         
  - Installing nategood/httpful (0.3.2): Downloading (100%)         
  - Installing symfony/process (v5.0.6): Downloading (100%)         
  - Installing psr/container (1.0.0): Downloading (100%)         
  - Installing php-di/invoker (2.0.0): Downloading (100%)         
  - Installing symfony/service-contracts (v2.0.1): Downloading (100%)         
  - Installing symfony/polyfill-php73 (v1.15.0): Downloading (100%)         
  - Installing symfony/console (v5.0.6): Downloading (100%)         
  - Installing mnapoli/silly (1.7.2): Downloading (100%)         
  - Installing psr/simple-cache (1.0.1): Downloading (100%)         
  - Installing illuminate/contracts (v7.3.0): Downloading (100%)         
  - Installing illuminate/container (v7.3.0): Downloading (100%)         
  - Installing laravel/valet (v2.9.0): Downloading (100%)         
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
5 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

再执行 valet install
报错:-bash: valet: command not found
解决:
1.open ~/.bash_profile

2.添加 export PATH="$PATH:$HOME/.composer/vendor/bin"
如果已存在PATH,如:
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
则修改为
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:~/.composer/vendor/bin"

3.使环境变量生效 source ~/.bash_profile
完成后再次运行 valet install 即可

Password:
No log handling enabled - using stderr logging
Created directory: /var/db/net-snmp
Created directory: /var/db/net-snmp/mib_indexes
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Installing php...
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
assh
bitrise
boost
cfn-lint
closure-compiler
dar
dependency-check
dnscrypt-proxy
dvc
go
godep
helm@2
innoextract
istioctl
joplin
keydb
minikube
openapi-generator
pueue
simple-scan
swift-format
traefik
traefik@1
vault
vim
yaegi
yamllint

[php] is not installed, installing it now via Brew... 🍻

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

豪冷啊

你的鼓励是对我的认可!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值