php 下载和安装laravel时发生访问被拒绝错误

kuuvgm7e  于 2023-05-16  发布在  PHP
关注(0)|答案(1)|浏览(221)

C:\Users\KEREM>composer create-project laravel/laravel example-app
Creating a "laravel/laravel" project at "./example-app"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v10.0.4)

In ProjectInstaller.php line 69:

  mkdir(): Permission denied

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--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] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

C:\Users\KEREM>composer create-project laravel/laravel example-app

https://repo.packagist.org的“./example-app”信息中创建一个“laravel/laravel”项目:#StandWithUkraine安装laravel/laravel(v10.0.4)
在ProjectInstaller.php行69:
mkdir():权限被拒绝

6l7fqoea

6l7fqoea1#

请确保您有权限在C:\Users\KEREM中写入。可能在子文件夹C:\Users\KEREM\Documents\...或其他子文件夹中工作。
如果仍然不起作用,请尝试以管理员身份运行windows控制台,然后在C:\Users\KEREM文件夹中重新运行composer create-project laravel/laravel example-app

相关问题