2

在尝试将新捆绑包安装到我的项目作曲家时,发生与许可有关的问题,问题如下

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile handling the symfony-scripts event terminated with an exception

Installation failed, reverting ./composer.json to its original content.


[Symfony\Component\Filesystem\Exception\IOException]                                                                                                                 
Failed to copy "/var/www/html/myProject/vendor/sensio/distribution-bundle/Composer/../Resources/skeleton/app/check.php" to "bin/symfony_requirements" because target file could not be opened for writing.                                                                                                                                    

谢谢...

4

2 回答 2

2

这可能会帮助您:

sudo chmod -R 777 bin/symfony_requirements

检查其他目录和文件是否需要权限,例如在我的情况下:

sudo chown -R $USER web/

也需要。

此外,如果您遇到缓存和日志问题,您可能会发现以下有用:

 rm -rf var/logs
 rm -rf var/cache
 rm -rf vendor

然后使用composer install

于 2019-12-11T13:36:55.377 回答
1

您对文件的权限错误bin/symfony_requirements。修复它,一切都会像魅力一样工作

于 2018-04-02T11:51:05.540 回答