终端命令:
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... 												

PHP Mac composer 安装 valet相关推荐

  1. mac composer 安装

    使用 curl 指令下载: curl -sS https://getcomposer.org/installer | php 或者 curl -sS -k https://getcomposer.or ...

  2. brew安装指定版本mysql,Mac 系统为 Valet 开发环境安装指定版本 MySQL

    Mac 系统为 Valet 开发环境安装指定版本 MySQL 由 学院君 创建于1年前, 最后更新于 5个月前 版本号 #3 1547 views 1 likes 0 collects 在 Mac 系 ...

  3. Mac 下安装Homebrew以及laravel开发环境valet

    1.安装Homebrew 1.获取install文件并编辑 sudo curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mas ...

  4. Composer 安装(一)

    2019独角兽企业重金招聘Python工程师标准>>> 一.简介 Composer 是 PHP 用来管理依赖(dependency)关系的工具.你可以在自己的项目中声明所依赖的外部工 ...

  5. composer安装特别慢的解决方案

    https://www.cnblogs.com/djwhome/p/9322287.html composer安装特别慢的解决方案 在项目开发的时候 有许多新的依赖要按照 就需要用到composer ...

  6. php框架laravel win10,composer 安装Laravel (win10)

    服务器要求 Laravel 对系统有一些要求.当然,所有这些要求 Laravel Homestead 虚拟机都能满足,因此强烈推荐你使用 Homestead 最为你的开发环境. 当然,假如你不使用 H ...

  7. mac下安装python3

    mac下安装python3 1.先用brew search命令查看 brew search python3 结果如下所示: ==> Formulae boost-python3 python3 ...

  8. Composer安装ThinkPHP5

    Composer安装ThinkPHP5 首先进入composer 中文官网 https://www.phpcomposer.com/ ->入门指南->全局安装 安装 - Windows 使 ...

  9. 【PHP框架 | Laravel8 系列1】 - Composer 安装指定 Laravel 版本

    前言:之前在学习并使用 Laravel 框架过程中,全是碎片化掌握,现在重新学习并记录一次学习的过程. 本文内容所对应 Laravel8.* 版本. 一. 安装 Composer 第一种: Compo ...

最新文章

  1. 听研二师兄师姐报告收获
  2. reg 只能导入二进制注册文件
  3. 以下选项不是python打开方式的是-关于文件的打开方式,以下选项中描述正确的是...
  4. Vuex2.0+Vue2.0构建备忘录应用实践
  5. libQtCore.so.4相关错误
  6. 制作唐诗网页代码_分享FrontPage制作网页的几个技巧
  7. gettimeofday函数
  8. StrokePlus常用脚本
  9. vbs调用c++dll_COM编程攻略(八 动态调用与IDispatch接口)
  10. SpringMVC 之类型转换Converter 源代码分析
  11. Linux中的/ dev / null
  12. 程序员的终极幻想(一):像操作数据库那样操作大脑的记忆
  13. 虚拟光驱 win7虚拟光驱下载 ultraiso
  14. Java实现八大排序算法【九千字超详解】
  15. 【自动驾驶】PurePursuit实现轨迹跟踪
  16. Boost常用库介绍
  17. 基于netty实现gps jtt808协议接入
  18. pp影视播放器官方版
  19. MoveIt与RobotStudio
  20. android仿tim主界面,简单仿腾讯TIM界面

热门文章

  1. python代码画爱心树_程序猿用python画一颗心送给暗恋的她
  2. 记录 “Thinkphp 3.2及以上版本实现支付宝担保交易、即时到账接口类、函数和使用方法”
  3. laravel中ajax使用
  4. 国产山寨掌机遇到强劲对手,来自开源界的Odroid Go Advance
  5. 【工控老马】micro logix1400进行modbus通讯
  6. 电工电子技术知识点总结(半导体器件)
  7. uniapp微信小商店引用标准版交易组件
  8. api hook 栈平衡_5个主流的数字货币行情API服务
  9. android通知声音oppo,oppo充电提示音
  10. w10系统老是自动息屏_WIN10总是自动息屏