Error when creating new project in laravel

2019-07-24 20:20发布

问题:

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:

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