【问题标题】:Having an issue installing IBM Cloud CLI on Windows 10在 Windows 10 上安装 IBM Cloud CLI 时遇到问题
【发布时间】:2019-03-02 12:53:03
【问题描述】:

我正在按照说明在此处找到的 Windows 10 虚拟机上安装 IBM Cloud CLI https://console.bluemix.net/docs/cli/index.html#overview,我在第 1 步遇到此错误。我不确定它为什么要在我的H盘和ibm cloud install因为错误而失败。它还指出“ibmcloud 已安装”可能是由于多次尝试安装但都失败了。重新启动机器后,我尝试使用“Ibmcloud dev help”确认安装,但得到相同的错误。

有人遇到过这个吗?

我正在采取的步骤:

我使用的是 Windows 10 Enterprise 虚拟机,并且我是管理员。我还以管理员身份运行 PowerShell。

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\> Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer
')

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

[main] --==[ IBM Cloud Developer Tools - Installer for Windows, v1.2.0 ]==--
[install] Starting Installation/Update...
[install_deps] Checking for external dependency: git
[install_deps] Checking for external dependency: docker
[install_deps] Installing/updating external dependency: docker
[install_deps] Install/update completed for: docker
[install_deps] Checking for external dependency: kubectl
[install_deps] Checking for external dependency: helm
ibmcloud already installed
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_bx] IBM Cloud CLI version:
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Installing/updating IBM Cloud CLI plugins used by IDT...
[install_plugins] Checking status of plugin: Cloud-Functions
[install_plugins] Installing plugin 'Cloud-Functions'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Checking status of plugin: container-registry
[install_plugins] Installing plugin 'container-registry'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Checking status of plugin: container-service
[install_plugins] Installing plugin 'container-service'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Checking status of plugin: dev
[install_plugins] Installing plugin 'dev'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Checking status of plugin: sdk-gen
[install_plugins] Installing plugin 'sdk-gen'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Running 'ibmcloud plugin list'...
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
Out-File : Illegal characters in path.
At line:325 char:29
+   Write-Output $idt_batch | Out-File -Encoding ascii $idt_command
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], ArgumentException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

[install] Install finished.
[quit] --==[ Finished. Total time: 00:00:04 seconds ]==--

A system restart is required. Would you like to restart now (y/N)?:y




I reboot and then “Verify the installation”

Ibmcloud dev help
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

【问题讨论】:

    标签: ibm-cloud ibm-mobile-services ibm-cloud-tools ibm-cloud-plugin


    【解决方案1】:

    我遇到了同样的问题,非常烦人!

    只要运行:

    C:\Users\MyUser> $env:HOMEDRIVE="c:"
    C:\Users\MyUser> $env:HOMEPATH="\Users\MyUser"
    

    运行 IBM 命令。您必须在每个新控制台中运行设置!

    【讨论】:

    • 仍然是 2019 年 12 月 3 日
    【解决方案2】:

    我遇到了这个问题,我可以通过将环境变量 IBMCLOUD_HOME 设置为我安装 ibm cloud cli 的目录来解决它。

    【讨论】:

      【解决方案3】:

      检查 Win10 虚拟机的用户主目录。 IBM Cloud CLI 将一些配置文件保存在~/.bluemix 下。

      从错误消息中,H:\ 被视为用户主目录,这似乎异常,因为通常用户主目录不是根文件夹。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-11-21
        • 1970-01-01
        • 1970-01-01
        • 2023-03-28
        • 1970-01-01
        • 2015-04-01
        相关资源
        最近更新 更多