I am watching a great YouTube series called Emacs From Scratch from System Crafters' YouTube channel. On episode #4, David Wilson talks about projectile.
His screen shows:
There is a pointer for the source on GitHub:
(use-package projectile
:diminish projectile-mode
:config (projectile-mode)
:custom ((projectile-completion-system 'ivy))
:bind-keymap
("C-c p" . projectile-command-map)
:init
;; NOTE: Set this to the folder where you keep your Git repos!
(when (file-directory-p "~/Projects/Code")
(setq projectile-project-search-path '("~/Projects/Code")))
(setq projectile-switch-project-action #'projectile-dired))
Unfortunately, this does not work. After quitting Emacs, when I re-started it, I was expecting the installation to be successful. However, there is a message in the Warning Buffer indicating:
Error (use-package): Failed to install projectile: https://melpa.org/packages/projectile-20220313.1334.el: Not found
This is weird because Projectile is listed on MELPA.
How can I fix this?
Thanks.

projectile-project-search-pathis a red herring; you should remove it. The error message simply indicates that it tried to download the package and it failed.