2

我正在按照本教程尝试使用 react native 的 aws amplify :

https://docs.amplify.aws/start/q/integration/react

几天前我可以推送,然后我想我碰巧更新了cli,然后放大停止工作。

例如,放大推送会引发以下错误:

$ amplify push
- Fetching updates to backend environment: dev from the cloud.
(node:18960) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 169.254.169.254:80
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
(node:18960) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18960) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

$ npm info amplify version
0.0.11

$ npm info aws-amplify version
3.0.18

aws-amplify/cli : 4.22.0

我在互联网上找不到解决方案,因此请提供帮助。

4

0 回答 0