我正在尝试启动laravel,
在他们的教程中找到以下行:
Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable is found when you run the laravel command in your terminal.
我不明白该怎么办?
我在系统变量中添加了
~/.composer/vendor/bin
,然后尝试在命令行中使用“laravel new blog”,但收到以下消息:laravel is not recognized as an internal or external command
我该怎么办?
最佳答案
对于Windows添加
C:\Users\MyUserName\AppData\Roaming\Composer\vendor\bin
通过转到“我的电脑”>“属性”>“高级”>“环境>变量”>“路径”来......。
注意:MyUserName是您的pc用户名。
重新启动您的PC,它将正常工作
关于laravel - laravel无法识别为内部或外部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25528583/