Error:
npm error code ENOENT
Nov 3 04:12:07 PMnpm error syscall open
Nov 3 04:12:07 PMnpm error path /opt/render/project/src/frontend/package.json
Nov 3 04:12:07 PMnpm error errno -2
Nov 3 04:12:07 PMnpm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘/opt/render/project/src/frontend/package.json’
Nov 3 04:12:07 PMnpm error enoent This is related to npm not being able to find a file.
Nov 3 04:12:07 PMnpm error enoent
Nov 3 04:12:07 PMnpm error A complete log of this run can be found in: /opt/render/.cache/_logs/2024-11-03T10_42_06_933Z-debug-0.log
I have two package.json one in my root for backend and other in frontend and it keeps searching in the frontend folder which leads to failed deployment.