首页 > 解决方案 > 创建新的laravel项目时权限被拒绝

问题描述

我试图使用 laravel 命令创建一个新的 laravel 项目,laravel new project_name 这给出了一个错误

Crafting application...
PHP Warning:  ZipArchive::extractTo(C:\xampp\htdocs/wub/server.php): failed to open stream: Permission denied in C:\Users\Fathi\AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 151

Warning: ZipArchive::extractTo(C:\xampp\htdocs/wub/server.php): failed to open stream: Permission denied in C:\Users\Fathi\AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 151
You should verify that the "storage" and "bootstrap/cache" directories are writable.
Composer could not find a composer.json file in C:\xampp\htdocs\wub
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Application ready! Build something amazing.

我正在使用 Windows 计算机

标签: phplaravelpermissionsinstallation

解决方案


推荐阅读