Describe the bug
npm ERR! peer dep missing: inquirer@^5.0.0 || ^6.0.0, required by [email protected]
Seems maybe you have upgraded to [email protected] but inquirer-autocomplete-prompt feels it needs inquirer@^5.0.0 || ^6.0.0. Maybe the dependency can be upgraded if compatible to avoid error.
Amplify CLI Version
4.13.1
To Reproduce
npm -g install @aws-amplify/cli
Expected behavior
no error
@leantide inquirer-autocomplete-prompt doesn't seem to be a CLI dependency.
Is there any other globally installed node_modules in your system which require inquirer-autocomplete-prompt?
Well, when I run npm -g list inquirer
I get 15 references into @aws-amplify:
/usr/local/nvm/versions/node/v12.14.0/lib
โโโฌ @aws-amplify/[email protected]
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected] deduped
โโโ UNMET PEER DEPENDENCY [email protected]
and then I get 15 copies of this error, 1 for each of the above references.
npm ERR! peer dep missing: inquirer@^5.0.0 || ^6.0.0, required by [email protected]
Maybe it is a dependency of your dependency on inquirer.
@leantide Does that prevent you from the CLI installation?
No. It still installs.
Also, from a high level, I have not noticed any deficiency of function of the cli.
it looks like interaction category uses inquirer-autocomplete-prompt.
@yuth Yes, @attilah diagnosed this sometime back and has a plan for this I believe.
I still have this issue in v4.18.1
Also have this issue with v4.18.1. It does not affect functionality but also doesn't give me full confidence when I see this:
Still present in 4.21.0
Still present in 4.21.4
Yeah i have the same problem, does anyone solved this already?
There is an open PR for that given dependency that is not merged since April, once that is merged we can bump the dependency version in the CLI and this will go away: https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/106 another alternative solution is to move to enquirer which has this prompt type in the box.
How are we looking on this?
Just tested it, seems fixed!
Most helpful comment
Also have this issue with v4.18.1. It does not affect functionality but also doesn't give me full confidence when I see this:
