How to deploy Adnonis js application?

Below are the logs i am getting after deploying adonis js application on render

Nov 5 03:31:34 PM ==> Cloning from GitHub - Archit314/User-registration-adonis-js-api
Nov 5 03:31:35 PM ==> Checking out commit d2eedbbd97b4053d239c66cb8cdebace47a77601 in branch main
Nov 5 03:31:38 PM ==> Using Node version 14.17.0 (default)
Nov 5 03:31:38 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 5 03:31:38 PM ==> Running build command ‘npm install; npm run build’…
Nov 5 03:31:39 PM up to date in 0.265s
Nov 5 03:31:39 PM found 0 vulnerabilities
Nov 5 03:31:39 PM
Nov 5 03:31:39 PM npm ERR! code ENOENT
Nov 5 03:31:39 PM npm ERR! syscall open
Nov 5 03:31:39 PM npm ERR! path /opt/render/project/src/package.json
Nov 5 03:31:39 PM npm ERR! errno -2
Nov 5 03:31:39 PM npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/render/project/src/package.json’
Nov 5 03:31:39 PM npm ERR! enoent This is related to npm not being able to find a file.
Nov 5 03:31:39 PM npm ERR! enoent
Nov 5 03:31:39 PM
Nov 5 03:31:39 PM npm ERR! A complete log of this run can be found in:
Nov 5 03:31:39 PM npm ERR! /opt/render/.cache/_logs/2023-11-05T10_01_39_444Z-debug.log
Nov 5 03:31:39 PM ==> Build failed :disappointed:

1 Like

Hey man, have you gotten a Solution to this?

if no you can signify

Hi there,

The logs you posted seem to be indicating what the problem is:

Nov 5 03:31:39 PM npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/render/project/src/package.json’Nov 5 03:31:39 PM npm ERR! enoent This is related to npm not being able to find a file.

npm can’t find the package.json file in the root directory of your project. Can you verify that it is located there?

Regards,
Mike


Render Support Engineer, MT (UTC-6)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.