【发布时间】:2021-03-13 10:18:57
【问题描述】:
我正在尝试使用 amplify 设置我的移动应用程序,在我第一次运行 amplify configuration 后,它提示我缺少插件。
The following official plugins are missing or inactive:
awscloudformation: provider | amplify-provider-awscloudformation@4.33.0
analytics: category | amplify-category-analytics@2.19.1
api: category | amplify-category-api@2.27.0
auth: category | amplify-category-auth@2.25.0
function: category | amplify-category-function@2.26.3
hosting: category | amplify-category-hosting@undefined
hosting: category | amplify-console-hosting@undefined
interactions: category | amplify-category-interactions@2.6.1
notifications: category | amplify-category-notifications@2.17.1
predictions: category | amplify-category-predictions@2.6.1
storage: category | amplify-category-storage@2.10.3
xr: category | amplify-category-xr@2.6.1
codegen: util | amplify-codegen@2.19.0
flutter: frontend | amplify-frontend-flutter@0.2.0
android: frontend | amplify-frontend-android@2.14.2
ios: frontend | amplify-frontend-ios@2.16.0
javascript: frontend | amplify-frontend-javascript@2.19.0
mock: util | amplify-util-mock@3.27.0
然后它要求我选择我的后端提供商,但我没有任何选择。
我认为这是缺少插件的原因,我该如何安装这些插件?
【问题讨论】:
-
你是用npm安装的吗?
-
不好意思提一下,我使用 yarn global add @aws-amplify/cli
-
然后尝试按照我的回答 :) 我遇到了同样的问题
-
你应该使用 npm 进行放大,但他们在文档中没有提到它......
标签: amazon-web-services aws-amplify aws-amplify-cli