2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Amplify initが失敗する

Posted at

なにがおきたか

amplify init --appId my-app-idしたら

Failed to fetch Amplify Admin credentials init failed
Error: TypeError: Cannot read property 'idToken' of undefined
    at Object.getAwsConfig (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/configuration-manager.ts:725:13)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

で死んだ。

公式の手順(https://aws.amazon.com/jp/getting-started/hands-on/build-react-app-amplify-graphql/module-two/)通りなのに落ちた

なおしかた

amplify cliのバージョンによるものらしい

一旦アンインストして、再度無事なバージョンを入れる

npm remove -g @aws-amplify/cli
npm install -g @aws-amplify/cli@4.36.2

無事にinitできた

これがcloseされたらバージョンあげよう...

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?