I am trying to set up Laravels Valet (Valet is a Laravel development environment for Mac). Everything works until it comes to the command "valet install". This command must be executed in terminal. But I got the error "command not found". Any ideas, why? Do I have to update my PATH or something else?

I switched to OS X a few days ago. Before that, I was a windows user. So I am a total newbie.

推荐答案

Yes, you need to make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:

echo $PATH

If you can't see it there, then you need to add this to your ~/.bash_profile:

export PATH=$PATH:~/.composer/vendor/bin

Laravel相关问答推荐

如何在使用Docker容器部署Laravel 8、9、10时处理SIGTERM信号,特别是与调度程序和工作进程相关的问题?

Laravel where 子句只返回一个数据库条目

函数接受 Laravel 集合对象,尽管只允许使用字符串

在 laravel 项目中放置 css 文件的位置

laravel render() 方法有什么用?

FileViewFinder.php 第 137 行中的 Laravel 5 InvalidArgumentException:未找到视图 [.admin]

集成测试模拟外观与注入模拟

Laravel Eloquent,仅 Select 存在关系的行

Blade引擎:打印三重花括号

Lumen 中的自定义 404 页面

.gitignore 不忽略文件夹

你如何找到 Laravel 外观背后的底层类?

将 Laravel MYSQL 更改为 utf8mb4 以在现有数据库中支持表情符号

Laravel 框架类在 PHPUnit 数据提供程序中不可用

localhost 和stream_socket_enable_crypto():SSL 操作失败,代码为 1

Eloquent 的 Model::query() 是什么意思?

使用 laravel eloquent 关系检索除 NULL 之外的所有记录

laravel 5.1 在没有 VM 重启的情况下看不到作业(job)文件的更改

Laravel 验证:数字和整数之间的区别?

如何判断是否在laravel中使用了分页