php - 创建新的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 计算机
解决方案
推荐阅读
- c# - setsimplecolumn 不使用 C# 中的 itextsharp 5 将文本定位到 PDF 中的给定坐标
- sql - SQL 查询以动态追加具有计算值的列
- sql-server - 需要帮助来计算单列
- javascript - 使用javascript单击按钮后如何更改视频源
- flutter - 如何使 Flutter 应用程序字体响应平板电脑?
- html - 我的输入字段必填选项不起作用
- python - Python:if 语句中的行级计算
- java - AppEngine Java Google Cloud 解析依赖项
- python - 将带有字符串的json文件加载到python中的pandas数据框中
- angular - 角材料 - 从子组件返回时排序和分页停止工作