Problem getting Ionic to server on mac OS big sur

I am on mac OS Big Sur and am having a heck of time getting Ionic to work. I am working on a project with a developer and we have a git repo where we manage the project. The local repo is in my user folder. This is the folder I am trying to get Ionic to work in.

I have both node and npm installed. I also have vue installed. When in the project folder, I type ionic serve and I get this:

> vue-cli-service serve

[INFO] Looks like @vue/cli-service isn't installed in this project.
       
       This package is required for this command to work properly. The package provides a CLI utility, but the
       vue-cli-service binary was not found in your PATH.

? Install @vue/cli-service? (Y/n)

If I type in Y, it runs through the install process and basically ends with npm ERR! Build failed.

But, if I do vue -V in this directory, I get @vue/cli 4.5.13

I have done this a few times, with the same results. The last log files is almost 3,000 lines long. I did notice this near the end:

2942 error No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
2942 error
2942 error No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
2942 error
2942 error No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
2942 error
2942 error gyp: No Xcode or CLT version detected!

Do I need Xcode CLT installed to make this work?

Sounds like you’re in the wrong folder, Make sure you’re in the the correct project folder.

I am in the right folder. I checked. Multiple times.

Turns out I had to have Xcode installed. All is working now.