LoginSignup
0
0

More than 3 years have passed since last update.

【amplify】 Can't find any frontend plugins configured for the CLI.

Last updated at Posted at 2021-04-28

amplify init でエラー

amplify 書籍の写経をしていたところ、 amplify init で エラーになり進められなくなりました。

PS ...\sample-todo> amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project sampletodo
The following configuration will be applied:

Project information
| Name: sampletodo
| Environment: dev
| Default editor: Visual Studio Code
Can't find any frontend plugins configured for the CLI.
Run 'amplify plugin scan' to scan your system for plugins.

どうやら、

npm i -g @aws-amplify/cli

を何度か繰り返ししていたタイミングで、@aws-amplify/cli のバージョンが 4.49.0 から 4.50.0 にアップデートされたためのようでした。

以下のようにアンインストールして、バージョンをもとに戻したところエラーは起こらなくなりました。

パッケージ削除とバージョン4.49.0指定のインストール
npm rm -g @aws-amplify/cli

npm i -g @aws-amplify/cli@4.49.0

実はもう一つの問題が。。。

amplify init エラーで色々悪戦苦闘していて yarn でも @aws-amplify/cli をインストールしてました。
これがまた解決に時間をかける原因になっていました。
このせいで npm rm しても 4.50.0 のパッケージが消えずに 4.49.0 に戻すことができなかったのです。

たまたま、 npm ls -g して @aws-amplify/cli があったところから yarn ディレクトリを見つけました。
なるほど、 yarn でも @aws-amplify/cli をアンインストールしないとダメでした!

ということで、 yarn remove もして 4.49.0 に戻せました。

yarnでのアンインストール
yarn global remove @aws-amplify/cli

環境

Windows 10

0
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
0
0