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 。如图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、原因可能在于切换了 Git 分支的缘故,而并未合并代码。但是 /vender 目录是共用的。重新执行命令:composer install 后,不再报错。如图2
近期评论