AWS Amplify 配置不允许登录控制台

AWS Amplify configure not allowing sign-in to console

我正在尝试配置我的 AWS Amplify 应用程序,但 运行 使用 amplify configure 时出错。

正确安装和配置 AWS/CLI 后,按照 , I attempted using the amplify configure command as per this tutorial 安装 aws-amplify/cli 模块。但是,我遇到了以下错误(假设 'user' 是我的有效用户名):

C:\Users\user\project>amplify configure
Follow these steps to set up access to your AWS account:

Sign in to your AWS administrator account:
https://console.aws.amazon.com/
Press Enter to continue
2020-02-16T02:12:08.705Z - error: uncaughtException: spawn cmd ENOENT date=Sat Feb 15 2020 18:12:08 GMT-0800 (Pacific Standard Time), pid=1820, uid=null, gid=null, cwd=C:\Users\user\CMAA, execPath=C:\Program Files\nodejs\node.exe, version=v12.16.0, 
argv=[C:\Program Files\nodejs\node.exe, C:\Users\user\AppData\Roaming\npm\node_modules\@aws-amplify\cli\bin\amplify, configure], rss=253734912, heapTotal=211009536, heapUsed=180695704, external=13705474, loadavg=[0, 0, 0], uptime=232949, trace=[column=19, 
file=internal/child_process.js, function=Process.ChildProcess._handle.onexit, line=267, method=onexit, native=false, column=16, 
file=internal/child_process.js, function=onErrorNT, line=469, method=null, native=false, column=21, 
file=internal/process/task_queues.js, function=processTicksAndRejections, line=84, method=null, native=false], stack=[Error: spawn cmd ENOENT,     

at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19),     
at onErrorNT (internal/child_process.js:469:16),     
at processTicksAndRejections (internal/process/task_queues.js:84:21)]

我试过破译它,但我找不到 child_process.js,这让我认为这只是一些子进程,然而这让我对修复它的线索更少。

Node.js 命令提示符和 Windows Powershell

在行为上没有区别

有没有其他人遇到过这样的问题,你是如何解决的?

如果这个问题需要移到 SuperUser 也请告诉我,我是在找到上述答案后才把它放在这里的。

请务必在您的 %PATH% 变量中包含 cmd.exe。让我卡住了,仅此而已