1

我曾尝试在 Windows 10、64 位版本的机器上安装 Acquia CLI,但是当尝试运行命令时acli auth:login抛出以下错误。

有人可以帮我解决这个问题吗?

Warning: mkdir(): Invalid argument in phar://D:/acquia_cloude_ide/acli.phar/vendor/webmozart/json/src/JsonEncoder.php on line 234

In JsonFileStore.php line 325:
  Could not write \/.acquia/cloud_api.conf: failed to open stream: No such fi
  le or directory (2)

In JsonEncoder.php line 283:
  Could not write \/.acquia/cloud_api.conf: failed to open stream: No such fi
  le or directory (2)
4

1 回答 1

2

Folks

I found the problem - it was that the PC I am using did not have HOME environment variable set - at the moment I've set both SYSTEM and USER environment variables pointing to my home directory (which is in c:\users\ ) but I'll do some further testing to narrow it down. Suspect setting system environment variable HOME does it for all users, so probably don't need the user env variable.

于 2021-03-17T11:21:16.220 回答