I was trying to migrate from heroku my back end from the GitHub repository. The build was succsefull but the deployment failed throwing the following message:
" error Couldn’t find a package.json file in “/opt/render/project/src”
Can someone help me?
I`m not sure. But I would make sure that you have selected the correct Root Directory at dashboard > settings > Root Directory.
Thanks for reaching out.
It sounds like you’re trying to deploy a NodeJS app, but don’t have a
package.json file. Is your
package.json in a subfolder, maybe?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.