Unable to deploy a gitlab repo

Mar 19 03:07:57 AM==> Checking out commit ab421b7a0803f976ce96d2272d8e0e0026f492ee in branch master

Mar 19 03:07:58 AM==> Using Node version 16.17.0 via /opt/render/project/src/server/.node-version

Mar 19 03:07:58 AM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Mar 19 03:08:03 AM==> Running build command ‘npm’…

Mar 19 03:08:03 AMnpm

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMUsage:

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMnpm install install all the dependencies in your project

Mar 19 03:08:03 AMnpm install add the dependency to your project

Mar 19 03:08:03 AMnpm test run this project’s tests

Mar 19 03:08:03 AMnpm run run the script named

Mar 19 03:08:03 AMnpm -h quick help on

Mar 19 03:08:03 AMnpm -l display usage info for all commands

Mar 19 03:08:03 AMnpm help search for help on

Mar 19 03:08:03 AMnpm help npm more involved overview

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMAll commands:

Mar 19 03:08:03 AM

Mar 19 03:08:03 AM access, adduser, audit, bin, bugs, cache, ci, completion,

Mar 19 03:08:03 AM config, dedupe, deprecate, diff, dist-tag, docs, doctor,

Mar 19 03:08:03 AM edit, exec, explain, explore, find-dupes, fund, get, help,

Mar 19 03:08:03 AM hook, init, install, install-ci-test, install-test, link,

Mar 19 03:08:03 AM ll, login, logout, ls, org, outdated, owner, pack, ping,

Mar 19 03:08:03 AM pkg, prefix, profile, prune, publish, rebuild, repo,

Mar 19 03:08:03 AM restart, root, run-script, search, set, set-script,

Mar 19 03:08:03 AM shrinkwrap, star, stars, start, stop, team, test, token,

Mar 19 03:08:03 AM uninstall, unpublish, unstar, update, version, view, whoami

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMSpecify configs in the ini-formatted file:

Mar 19 03:08:03 AM /opt/render/.npmrc

Mar 19 03:08:03 AMor on the command line via: npm --key=value

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMMore configuration info: npm help config

Mar 19 03:08:03 AMConfiguration fields: npm help 7 config

Mar 19 03:08:03 AM

Mar 19 03:08:03 AMnpm@8.15.0 /opt/render/project/nodes/node-16.17.0/lib/node_modules/npm

Mar 19 03:08:03 AM==> Build failed :disappointed:

Mar 19 03:08:03 AM==> Common ways to troubleshoot your deploy: Troubleshooting Your Deploy | Render Docs

===============================================================
package.json file

{
“name”: “server”,
“version”: “1.0.0”,
“description”: “”,
“main”: “server.js”,
“scripts”: {
“devStart”: “nodemon server.js”,
“start”: “node server.js”
},
“keywords”: ,
“author”: “”,
“license”: “ISC”,
“dependencies”: {
“axios”: “^1.6.7”,
“cors”: “^2.8.5”,
“date-fns”: “^3.5.0”,
“dotenv”: “^16.4.5”,
“express”: “^4.18.3”
},
“devDependencies”: {
“nodemon”: “^3.1.0”
}
}

Hi,

You’re running just npm as the build command. npm on its own does nothing apart from showing the help text (as above).

If you’re looking to install dependencies, it would be npm install.

Alan