在Laravel中创建新项目时出错 [英] Error when creating new project in laravel

查看:299
本文介绍了在Laravel中创建新项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过的事情:

1)安装php7.2
2)安装Composer
3)运行全局命令composer require"laravel/installer"

1) Install php7.2
2) Install Composer
3) run command composer global require "laravel/installer"

但是当我运行laravel new blog时,输出错误如下:

But when i run laravel new blog the output error is the following:

提供的cwd不存在.

The provided cwd does not exist.

推荐答案

提供的cwd不存在,意味着当前工作目录不存在,这意味着laravel new命令无法创建目录"blog",因为您这样做没有这样做的权限.

The provided cwd does not exist means that the Current Working Directory does not exist which means that laravel new command was unable to create the directory 'blog' because you do not have the permission to do so.

您可以做的是更改该目录的权限,以便该命令能够创建工作目录

What you can do is to change the permissions for that directory, so the command is able to create the working directory

这篇关于在Laravel中创建新项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆