Error when creating new project in laravel

2019-07-24 20:02发布

What i have tried:

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

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

The provided cwd does not exist.

1条回答
冷血范
2楼-- · 2019-07-24 20:36

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

查看更多
登录 后发表回答