composer 在执行任何命令时生成 [JsonSchema\Exception\ResourceNotFoundException]
composer generate [JsonSchema\Exception\ResourceNotFoundException] while executing any command
我在 Windows 10 (x64)
上使用 composer
和 php 7.1.5
,如果当前文件夹为空,我可以更新 composer
本身,但一旦我创建 composer.json
对于项目 (composer init
) 那么任何 composer command
都会失败并出现相同的错误。删除 composer.json
将使该错误消失。
[JsonSchema\Exception\ResourceNotFoundException]
file_get_contents(phar://Y:/Programs cache/PHP/):
failed to open stream: phar error: no directory in "phar://Y:/Programs cache/PHP/",
must have at least phar://Y:/Programs cache/PHP// for root directory
(always use full path to a new phar
我已经解决了这个问题,我只是在路径中有一个“#
”,我知道这个字符在文件夹名称中使用时会导致很多问题,但问题是 composer
更新工作正常,但在我尝试 composer init
时停止了
我在 Windows 10 (x64)
上使用 composer
和 php 7.1.5
,如果当前文件夹为空,我可以更新 composer
本身,但一旦我创建 composer.json
对于项目 (composer init
) 那么任何 composer command
都会失败并出现相同的错误。删除 composer.json
将使该错误消失。
[JsonSchema\Exception\ResourceNotFoundException]
file_get_contents(phar://Y:/Programs cache/PHP/):
failed to open stream: phar error: no directory in "phar://Y:/Programs cache/PHP/",
must have at least phar://Y:/Programs cache/PHP// for root directory
(always use full path to a new phar
我已经解决了这个问题,我只是在路径中有一个“#
”,我知道这个字符在文件夹名称中使用时会导致很多问题,但问题是 composer
更新工作正常,但在我尝试 composer init