我正在尝试初始化放大,但由于网络错误而失败。下面是命令堆栈。
amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project useapp
The following configuration will be applied:
Project information
| Name: useapp
| Environment: dev
| Default editor: Visual Studio Code
| App type: javascript
| Javascript framework: none
| Source Directory Path: src
| Distribution Directory Path: dist
| Build Command: npm.cmd run-script build
| Start Command: npm.cmd run-script start
? Initialize the project with the above configuration? Yes
Using default provider awscloudformation
? Select the authentication method you want to use: AWS access keys
? accessKeyId: ********************
? secretAccessKey: ****************************************
? region: ap-south-1
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket.EventEmitter.emit (domain.js:467:12)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
code: 'NetworkingError',
region: 'ap-south-1',
hostname: 'amplify.ap-south-1.amazonaws.com',
retryable: true,
time: 2021-04-20T12:27:20.274Z
}
我查了很多论坛。涉及代理时会发生这种情况(一般建议是设置环境变量 http_proxy 和 https_proxy)。虽然我的笔记本电脑在公司 VPN 上,但没有设置代理。请找到 netsh 命令的输出
PS C:\Windows\system32> netsh winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).
PS C:\Windows\system32>
请帮我解决问题。