[英]I have this error when I start a Symfony project
$ composer require server --dev
Restricting packages listed in "symfony/symfony" to "4.4.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Nothing to install or update
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In Kernel.php line 547:
!!
!! Notice: fwrite(): write of 785 bytes failed with errno=13 Permission denied
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json to its original content.
!! Notice: fwrite(): write of 785 bytes failed with errno=13 Permission denied
消息很明確,您當前的用戶沒有足夠的權限在 composer 目錄中寫入。 也許composer install
已經以 root 身份運行?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.