@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
@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
@UnleashedMind there is nothing like awscloudformation
Thanks.
Could you do the following:
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
great!
-> 'active plugins
-> scroll down and see if there's a awscloudformation
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..
How about amplify configure
? it is also still failing?
Successfuly added Plugin.
It Worked ! @UnleashedMind
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
No problem.
Please let us know the Operating System, we need to investigate more on this.
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.
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
because the auth
plugin is not found.
Could you do a amplify plugin list
and try to locate auth
?
did't understand.
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,,
Most helpful comment
great!
-> 'active plugins
-> scroll down and see if there's aawscloudformation
amplify plugin add
and paste the full pathC:\Users\muazz\AppData\Local\Yarn\Data\global\node_modules@aws-amplify\cli\node_modules\amplify-provider-awscloudformation
, see if you get an error.