1

我正在尝试按照以下方式在我的 Fedora 33 系统上创建一个新的 Laravel 项目:

https://laravel.com/docs/8.x/installation#getting-started-on-linux

我运行命令并获得以下输出:

[glen@localhost gclark18]$ sudo curl -s https://laravel.build/example-app | bash

 _                               _
| |                             | |
| |     __ _ _ __ __ ___   _____| |
| |    / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V /  __/ |
|______\__,_|_|  \__,_| \_/ \___|_|

Warning: TTY mode requires /dev/tty to be read/writable.
    Creating a "laravel/laravel" project at "./example-app"
    Installing laravel/laravel (v8.5.14)
    
                                  
  [ErrorException]            
  mkdir(): Permission denied  
                              

    create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]

bash: line 16: cd: example-app: No such file or directory

Get started with: cd example-app && ./vendor/bin/sail up

我不确定为什么它没有权限,因为这是我的主目录中我拥有完全权限的文件夹。

4

0 回答 0