Help! Build failed. Not able to deploy the backend of an app

Not sure why this code is not deploying, very new to programming so don’t really understand what the issue is…

Jun 18 03:11:29 PM ==> Cloning from GitHub - jonakfir/smart-brain-api
Jun 18 03:11:29 PM ==> Checking out commit 7c8c94c5a5918be14ce2508c8145b04966b7c9ee in branch main
Jun 18 03:11:32 PM ==> Using Node version 14.17.0 (default)
Jun 18 03:11:32 PM ==> Docs on specifying a Node version: Specifying a Node Version | Render
Jun 18 03:11:32 PM ==> Running build command ‘npm’…
Jun 18 03:11:32 PM
Jun 18 03:11:32 PM Usage: npm
Jun 18 03:11:32 PM
Jun 18 03:11:32 PM where is one of:
Jun 18 03:11:32 PM access, adduser, audit, bin, bugs, c, cache, ci, cit,
Jun 18 03:11:32 PM clean-install, clean-install-test, completion, config,
Jun 18 03:11:32 PM create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
Jun 18 03:11:32 PM edit, explore, fund, get, help, help-search, hook, i, init,
Jun 18 03:11:32 PM install, install-ci-test, install-test, it, link, list, ln,
Jun 18 03:11:32 PM login, logout, ls, org, outdated, owner, pack, ping, prefix,
Jun 18 03:11:32 PM profile, prune, publish, rb, rebuild, repo, restart, root,
Jun 18 03:11:32 PM run, run-script, s, se, search, set, shrinkwrap, star,
Jun 18 03:11:32 PM stars, start, stop, t, team, test, token, tst, un,
Jun 18 03:11:32 PM uninstall, unpublish, unstar, up, update, v, version, view,
Jun 18 03:11:32 PM whoami
Jun 18 03:11:32 PM
Jun 18 03:11:32 PM npm -h quick help on
Jun 18 03:11:32 PM npm -l display full usage info
Jun 18 03:11:32 PM npm help search for help on
Jun 18 03:11:32 PM npm help npm involved overview
Jun 18 03:11:32 PM
Jun 18 03:11:32 PM Specify configs in the ini-formatted file:
Jun 18 03:11:32 PM /opt/render/.npmrc
Jun 18 03:11:32 PM or on the command line via: npm --key value
Jun 18 03:11:32 PM Config info can be viewed via: npm help config
Jun 18 03:11:32 PM
Jun 18 03:11:32 PM npm@6.14.13 /usr/local/lib/node_modules/npm
Jun 18 03:11:32 PM ==> Build failed :disappointed:

HI there,

When you’re running npm as your build command it’s just going to show you the help for the command as your output is showing you. You probably need to be using npm install

Regards,

John B
Render Support, UTC+1 :uk:

Hello,
I had the same problem and I also put npm instead of ‘npm install’.
Since I fixed it, it works well.
Thank you so much

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