微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

放大命令抛出未定义的错误

如何解决放大命令抛出未定义的错误

我正在使用 AWS Amplify 库运行 React Native 项目。我做了一个简单的方案更改,如果我尝试使用 Amplify push 甚至 Amplify status 命令,我会收到以下错误

TypeError: Cannot read property 'forEach' of undefined
at AmplifyToolkit.showHelpfulProviderLinks [as _showHelpfulProviderLinks] (/usr/local/lib/node_modules/@aws-amplify/cli/lib/extensions/amplify-helpers/show-helpful-provider-links.js:12:15)
at processticksAndRejections (internal/process/task_queues.js:97:5)
at async Object.exports.run (/usr/local/lib/node_modules/@aws-amplify/cli/lib/commands/status.js:6:5)
at async Object.executeAmplifyCommand (/usr/local/lib/node_modules/@aws-amplify/cli/lib/index.js:173:9)
at async executePluginModuleCommand (/usr/local/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:153:5)
at async Object.executeCommand (/usr/local/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:35:9)
at async Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/lib/index.js:82:9)

我试过 npm update 但没有用。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。