chmod(): operation not permitted, /vendor/laravel/framework/src/illuminate/filesystem/filesystem.php
1. chmod(): operation not permitted, /vendor/laravel/framework/src/illuminate/filesystem/filesystem.php . as shown in Figure 1
public function replace($path, $content)
{
// If the path already exists and is a symlink, get the real path...
clearstatcache(true, $path);
$path = realpath($path) ?: $path;
$tempPath = tempnam(dirname($path), basename($path));
// Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600...
chmod($tempPath, 0777 - umask());
file_put_contents($tempPath, $content);
rename($tempPath, $path);
}
2. The reason may be that the git branch is switched, and the code is not merged. But the /vender directory is shared. Re-execute the command: after composer install, no more errors are reported. as shown in Figure 2

