doufen1933 2019-02-05 04:26
浏览 147

作曲家:无法摆脱一个包

I have a package added to version control that I am trying to get rid of it.

I tired composer remove command but it's not working and giving me the following message:

 composer remove drupal/domain       
drupal/domain is not required in your composer.json and has not been removed
Gathering patches for root package.
Package "drupal/domain" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)


Package operations: 1 install, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/domain (1.0.0-alpha14): Downloading (100%)         
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Generating autoload files
> Drupal\Core\Composer\Composer::ensureHtaccess

I made sure it's not referenced in composer.json any more as a requirement or a dependency of another package. Something weird is going on and I have no idea where.

I even tried clearing composer cache, removing the vendor directory and composer.lock file. Then ran composer install and again I see the package installed. The only reference I see to it, is in installed.json file. But that file is autogenerated by composer.

Update: I tried removing composer.lock and then run composer update --lock but that also did not work. Then I removed all the references to it and other packages that require it from composer.lock manually and ran composer install. This time it worked and did not re-download the package. I am not sure why.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 yolov8边框坐标
    • ¥15 matlab中使用gurobi时报错
    • ¥15 WPF 大屏看板表格背景图片设置
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真