Amplify-cli: Latest version 4.13.3-- can not init due to plugins error.

Created on 16 Feb 2020  路  6Comments  路  Source: aws-amplify/amplify-cli

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
Upgraded to aws-amplify/[email protected].

Attempt to init a new gatsby project to upload it to amplify fails with the following--

Error: Found no provider plugins
Run 'amplify plugin scan' to scan your system for provider plugins.
init failed

Scanning for plugins...
The following official plugins are missing or inactive:
awscloudformation: provider | [email protected]
codegen: util | [email protected]
mock: util | [email protected]
Plugin scan successful

To my knowledge, there should have been no change to these plugins as they worked the last 72 hours.

Amplify CLI Version
You can use amplify -v to check the amplify cli version on your system

4.3.3

To Reproduce
Steps to reproduce the behavior or terminal output if applicable

amplify init

Expected behavior
A clear and concise description of what you expected to happen.

Expect to complete init without error as I have done the last few weeks and then setup git push to deliver to amplify

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Mac/Windows/Ubuntu]
  • Node Version. You can use node -v to check the node version on your system

Ubuntu 19.04, node version 12.15.0

Additional context
Have tried re-installing aws-amplify/cli, reinstalled all node_modules (local). I saw in prior errors of this kind on windows, users had to manually link plugins giving file path and name. I didn't see similar way to do on linux.

Most helpful comment

Could we add a note to the docs specifying that you must use npm and must install the CLI globally? In the JS ecosystem, you can normally use yarn or npm as you please, and install globally or locally, so this behavior is quite confusing.

All 6 comments

After about 6 hours of grubbing around, found this recommendation, #2746. Removing the yarn global dir and reinstalling using npm seems to fix my problem. Ugh.

Can confirm this issue is still relevant as of today, using yarn (on windows FWIW) will not let you init correctly. You need to install the cli with npm.

Can also confirm, just experienced this.

Could we add a note to the docs specifying that you must use npm and must install the CLI globally? In the JS ecosystem, you can normally use yarn or npm as you please, and install globally or locally, so this behavior is quite confusing.

Would move to reopen this issue, as it is still an issue.

What is the best avenue? New issue and reference this, or ping someone on the team to reopen?

How about I start with pinging OP and asking for reopen: @weisisheng

I don't know what the protocol is for re-opening but feel free if you wish to keep alive.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicksmithr picture nicksmithr  路  3Comments

jeanpaulcozzatti picture jeanpaulcozzatti  路  3Comments

jexh picture jexh  路  3Comments

zjullion picture zjullion  路  3Comments

amlcodes picture amlcodes  路  3Comments