当尝试通过Phive安装phploc v2.1.3时,如果系统上没有可用的驱动器/目录,则会出现有关创建“ U:\”目录的错误。下面是我正在运行的命令和我遇到的错误。
D:\>php phive-0.12.0.phar install phploc@~2.1.3
Phive 0.12.0 - Copyright (C) 2015-2018 by Arne Blankerts, Sebastian Heuer and Contributors
[ERROR] An error occurred while processing your request:
Creating directory "U:\" failed.
#0 har://D:/phive-0.12.0.phar/vendor/phar-io/filesystem/src/Directory.php(100)
#1 har://D:/phive-0.12.0.phar/vendor/phar-io/filesystem/src/Directory.php(24): PharIo\FileSystem\Directory->ensureExists()
#2 har://D:/phive-0.12.0.phar/src/shared/environment/WindowsEnvironment.php(24): PharIo\FileSystem\Directory->__construct()
#3 har://D:/phive-0.12.0.phar/src/shared/config/Config.php(49): PharIo\Phive\WindowsEnvironment->getHomeDirectory()
#4 har://D:/phive-0.12.0.phar/src/Factory.php(382): PharIo\Phive\Config->getHomeDirectory()
#5 har://D:/phive-0.12.0.phar/src/Factory.php(279): PharIo\Phive\Factory->getPharRegistry()
#6 har://D:/phive-0.12.0.phar/src/Factory.php(127): PharIo\Phive\Factory->getInstallService()
#7 har://D:/phive-0.12.0.phar/src/commands/CommandLocator.php(40): PharIo\Phive\Factory->getInstallCommand()
#8 har://D:/phive-0.12.0.phar/src/shared/cli/Runner.php(211): PharIo\Phive\CommandLocator->getCommand()
#9 har://D:/phive-0.12.0.phar/src/shared/cli/Runner.php(70): PharIo\Phive\Cli\Runner->execute()
#10 :\phive-0.12.0.phar(306): PharIo\Phive\Cli\Runner->run()
#11 {main}
Environment: PHP 7.1.14
Phive Version: 0.12.0
This should not have happened and is most likely a bug.
Please report it at https://github.com/phar-io/phive/issues, make sure you include
the full output of this error message. Thank you!
我也在下面尝试过,但是没有用: D:> php phive-0.12.0.phar安装phploc@2.1.3