Amplify-cli: Amplify config and Amplify init Error !

Created on 25 Sep 2019  路  29Comments  路  Source: aws-amplify/amplify-cli

image

image

pending-triage platform

Most helpful comment

great!

  • do a 'amplify plugin scan`,
  • run 'amplify plugin list-> 'active plugins -> scroll down and see if there's a awscloudformation
  • if yes, you are good to go
  • if not, run amplify plugin add and paste the full path C:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules@aws-amplify\cli\node_modules\amplify-provider-awscloudformation, see if you get an error.

All 29 comments

@Muazzamkhan95 This is super weird. I've seen this issue before in one of the threads and the user re-installed the CLI using yarn - yarn global add @aws-amplify/cli and got rid of this error. We'll deep dive into this but in the meanwhile you can try yarn and let me know if this worked.

have a look at yarn errors
image

@Muazzamkhan95
Ignore the npm installation errors for now, and try to run the amplify configure and amplify init commands, see if they succeed.
If not, try to run amplify plugin list -> active plugins and see if it contains awscloudformaiton

image

@UnleashedMind there is nothing like awscloudformation

Thanks.
Could you do the following:

  • go to C:\Users\muazz\AppData\Local\Yarn\Data\globalnode_modules\@aws-amplify\clinode_modules
    See if you can find the plugins: packages that start with amplify-, and see if you have amplify-provider-awscloudformaiton

then do a amplify plugin scan, and see if it resolves your issue.
BTW, this is not typical, but we've seen this happen on Windows.

Yes i have amplify-provider-awscloudformaiton
image

great!

  • do a 'amplify plugin scan`,
  • run 'amplify plugin list-> 'active plugins -> scroll down and see if there's a awscloudformation
  • if yes, you are good to go
  • if not, run amplify plugin add and paste the full path C:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules@aws-amplify\cli\node_modules\amplify-provider-awscloudformation, see if you get an error.

after running scan there is no fix..

image

How about amplify configure? it is also still failing?

Successfuly added Plugin.

image

It Worked ! @UnleashedMind

image

great!
but that's only step one.
We need to figure out the frontend plugin issue. Please check the same for the amplify-frontend-javascript plugin as you did for the amplify-provider-awscloudformation

oohk... let me do it really quick

i have amplify-frontend-javascript in me directory..

great! add it manually like before, and run amplify init again.

I am really thankful Dear @UnleashedMind
it worked..
i was tackling with this error for more then 6 hours :)
Thanks alot
image

No problem.
Please let us know the Operating System, we need to investigate more on this.

image

Thanks.
I will keep this issue open for a couple of more days.
There might be some settings form you system that prevents the CLI from scanning all the plugins.
Let us know by posting on this thread when that happens again.

@UnleashedMind can you please tell me which plugin i needed for this.
image

try this:

  • amplify plugin configure -> scannable plugin directories -> add -> and paste this: C:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules\@aws-amplify\cli\node_modules\

try this:

  • amplify plugin configure -> scannable plugin directories -> add -> and paste this: C:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules\@aws-amplify\cli\node_modules\

@UnleashedMind Not worked.

these are all plugins configured.... but getting error while running amplify auth add
image

because the auth plugin is not found.
Could you do a amplify plugin list and try to locate auth?

did't understand.

image

fixed .... thanks @UnleashedMind for you help..

the issue was that..
on window there is some rules or something which is preventing to scan plugins so you have to add plugins manualy ...

amplify plugin configure -> scannable plugin directories -> add -> and paste this: C:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules\

by using this,,

Was this page helpful?
0 / 5 - 0 ratings