向Laravel项目添加依赖项,然后运行composer update会发出一个错误,指出它找不到合适的路径。这是错误:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing danielstjules/stringy (1.9.0)
- Installing danielstjules/stringy (1.10.0)
[UnexpectedValueException]
RecursiveDirectoryIterator::__construct(U:\home\nickmitchko\Site\vendor/danielstjules/stringy): failed to open dir: No error
您可以在此处看到该目录实际可访问:
任何人都知道一个解决方法,看起来路径分隔符在整个路径字符串中是不同的:
RecursiveDirectoryIterator::__construct(...)
更新1:
当路径没有空格时,仍然会发生错误。
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing symfony/var-dumper (v2.6.9)
- Installing symfony/var-dumper (v2.6.11)
[UnexpectedValueException]
RecursiveDirectoryIterator::__construct(U:\home\nickmitchko\Documents\CMW\MXDSite\vendor/symfony/var-dumper/Symfony/Component/VarDumper): failed to op
en dir: No error