Возникла проблема при установке IBM Cloud CLI в Windows 10 - PullRequest
0 голосов
/ 26 сентября 2018

Я следую инструкциям по установке IBM Cloud CLI на виртуальной машине Windows 10, найденной здесь https://console.bluemix.net/docs/cli/index.html#overview, и я сталкиваюсь с этой ошибкой на шаге 1. Я не уверен, почему он ищет config.jsonфайл на моем диске H, и установка ibm cloud не удалась из-за ошибки.В нем также говорится «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.

Ответы [ 2 ]

0 голосов
/ 16 октября 2018

У меня была такая же проблема, безумно раздражает!

Просто запустите:

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

Запустите команды IBM.Вы должны запустить настройку в каждой новой консоли!

0 голосов
/ 29 сентября 2018

Проверьте домашний каталог пользователя вашей Win10 VM.В облачном CLI IBM некоторые файлы конфигурации хранятся в ~/.bluemix.

. Из сообщения об ошибке H:\ считалось домашним каталогом пользователя, что выглядит ненормально, поскольку обычно домашний каталог пользователя не является корневой папкой.

...