The specified directory does not contain a valid package.json

.';The specified directory does not contain a valid package.json. when i am trying to publish a website to git. How do I fix this?

[10:20 AM] I also get this error
[10:20 AM] Unexpected error
Error: get /github/detect/edub9/Agri-Mation-website failed [404/4]: status error data {“branch”:“main”,“installationId”:30386112,“dir”:“”,“token”:“ghu_LAOIyOFxQ9ucJnHp9QKWbUXnsLTuRt1orb5F”}

[10:21 AM] I am publishing to a personal public repo that is empty.

[10:24 AM] If I try to create a new repo from Plasmic to publish into I get this error.
[10:24 AM] Unexpected error
Error: post /github/repos failed: Internal Server Error

Any ideas guys?