Reputation: 137
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.
Upvotes: 2
Views: 9766
Reputation: 11
in App\Providers\AppServiceProvider in register function I commented these lines of code and it worked
before:
public function register()
{
$this->app->bind('path.public', function() {
return realpath(base_path().'/../public_html');
});
}
after:
public function register()
{
//$this->app->bind('path.public', function() {
//return realpath(base_path().'/../public_html');
});
}
Upvotes: 0
Reputation: 712
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
Upvotes: 1