codeigniter 使用composer require-dev时出错,mikey 179/vfsStream无效

irlmq6kh  于 2022-12-07  发布在  其他
关注(0)|答案(4)|浏览(330)

我正在使用AmazonLightSail和CodeIgniter框架。尝试使用安装PhpSpreadsheet -https://phpspreadsheet.readthedocs.io/en/latest/#installation

composer require phpoffice/phpspreadsheet

然而我却被

[RuntimeException]
  require-dev.mikey179/vfsStream is invalid, it should not contain uppercase characters. Please use mikey179/vfsstream instead.

我做了通常的谷歌搜索,但没有找到任何具体的。
当我奔跑

composer.phar show

我从上面得到错误。

guz6ccqo

guz6ccqo1#

require-dev部分的composer.json中必须有mikey179/vfsStream(因为问题是针对require-dev的,而您正在尝试执行正常要求)。
只需将软件包的名称全部改为小写字符。

ut6juiuv

ut6juiuv2#

只需将mikey 179/vfsStream替换为mikey 179/vfsStream即可

guicsvcw

guicsvcw3#

将此“mikey 179/vfsStream”包名称设置为小写。
“mikey 179/vfsStream”将其替换为“mikey 179/vfsstream”

egdjgwm8

egdjgwm84#

在composer.json文件中查找mikey 179/vfsStream,并将其所有字符小写,使其成为mikey 179/vfsstream

"require-dev": {
    "mikey179/vfsstream": "1.1.*",
    "phpunit/phpunit": "4.* || 5.*"
}

相关问题