Stuck on build step 1 and it takes too long to run

I have this problem of not getting past build step 1. Everything I have found thus far I thought would fix it but the problem remains the same of the build not finishing and taking too long. It is just a portfolio site which is using nodejs for some API stuff. I have my ENV Variables set (including the nodejs version) and I also changed the file structure so it should read correctly, which I think still might be the problem.

I have no base directory set, build command is “npm run start” which is “node index.js” and does execute, and then publish directory I have as reponame/public.

Just stuck at this point and would appreciate any help, I will paste the most recent deploy build log below:

4:34:44 PM: Waiting for other deploys from your team to complete. Check the queue: Netlify App
4:35:23 PM: Build ready to start
4:35:36 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
4:35:36 PM: build-image tag: v4.10.1
4:35:36 PM: buildbot version: 7e449fda4d95fa42451b88186ca7054116649237
4:35:36 PM: Fetching cached dependencies
4:35:36 PM: Failed to fetch cache, continuing with build
4:35:36 PM: Starting to prepare the repo for build
4:35:36 PM: No cached dependencies found. Cloning fresh repo
4:35:36 PM: git clone https://github.com/pwarner3/Portfolio-Website
4:35:38 PM: Preparing Git Reference refs/heads/master
4:35:38 PM: Parsing package.json dependencies
4:35:39 PM: ​❯ Initial build environmentbaseRelDir: truebranch: mastercontext: productioncwd: /opt/build/repofeatureFlags: mode: buildbotrepositoryRoot: /opt/build/repositeId: 323514e5-05e7-4e56-895b-9ec7a77b5ec9​❯ UI build settingsbaseRelDir: truebuild: command: npm run start environment: - ID - NETLIFY_BUILD_DEBUG - NODE_VERSION - PORT - REFRESH - SECRET publish: Portfolio-Website/public​❯ Resolved build environmentbranch: masterbuildDir: /opt/build/repocontext: productionenv: ​❯ Resolved configbuild: command: npm run start commandOrigin: ui environment: - ID - NETLIFY_BUILD_DEBUG - NODE_VERSION - PORT - REFRESH - SECRET publish: /opt/build/repo/Portfolio-Website/public publishOrigin: ui
4:35:39 PM: Starting build script
4:35:39 PM: Installing dependencies
4:35:39 PM: Python version set to 2.7
4:35:39 PM: Downloading and installing node v16.13.2…
4:35:40 PM: Downloading https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.xz
4:35:40 PM: Computing checksum with sha256sum
4:35:40 PM: Checksums matched!
4:35:42 PM: Now using node v16.13.2 (npm v8.1.2)
4:35:42 PM: Started restoring cached build plugins
4:35:42 PM: Finished restoring cached build plugins
4:35:42 PM: Attempting ruby version 2.7.2, read from environment
4:35:43 PM: Using ruby version 2.7.2
4:35:43 PM: Using PHP version 8.0
4:35:43 PM: No npm workspaces detected
4:35:43 PM: Started restoring cached node modules
4:35:43 PM: Finished restoring cached node modules
4:35:43 PM: Installing NPM modules using NPM version 8.1.2
4:35:44 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
4:35:46 PM: added 136 packages, and audited 137 packages in 2s
4:35:46 PM: 11 packages are looking for funding
4:35:46 PM: run npm fund for details
4:35:46 PM: 8 vulnerabilities (3 moderate, 5 high)
4:35:46 PM: To address issues that do not require attention, run:
4:35:46 PM: npm audit fix
4:35:46 PM: To address all issues (including breaking changes), run:
4:35:46 PM: npm audit fix --force
4:35:46 PM: Run npm audit for details.
4:35:46 PM: NPM modules installed
4:35:46 PM: Started restoring cached go cache
4:35:46 PM: Finished restoring cached go cache
4:35:46 PM: Installing Go version 1.17 (requested 1.17)
4:35:51 PM: unset GOOS;
4:35:51 PM: unset GOARCH;
4:35:51 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
4:35:51 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
4:35:51 PM: go version >&2;
4:35:51 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
4:35:51 PM: go version go1.17 linux/amd64
4:35:51 PM: Installing missing commands
4:35:51 PM: Verify run directory
4:35:52 PM: ​
4:35:52 PM: ────────────────────────────────────────────────────────────────
4:35:52 PM: Netlify Build
4:35:52 PM: ────────────────────────────────────────────────────────────────
4:35:52 PM: ​
4:35:52 PM: ❯ Version
4:35:52 PM: @netlify/build 27.18.1
4:35:52 PM: ​
4:35:52 PM: ❯ Flags
4:35:52 PM: apiHost: api.netlify.com
4:35:52 PM: baseRelDir: true
4:35:52 PM: branch: master
4:35:52 PM: buildId: 63279d04e518ec0008ba297d
4:35:52 PM: buildbotServerSocket: /tmp/netlify-buildbot-socket
4:35:52 PM: cacheDir: /opt/build/cache
4:35:52 PM: cachedConfigPath: /tmp/netlify_config.json
4:35:52 PM: context: production
4:35:52 PM: cwd: /opt/build/repo
4:35:52 PM: deployId: 63279d04e518ec0008ba297f
4:35:52 PM: edgeFunctionsDistDir: /tmp/edge-63279d04e518ec0008ba297f
4:35:52 PM: featureFlags:
4:35:52 PM: - edge_functions_cache_cli
4:35:52 PM: - edge_functions_produce_eszip
4:35:52 PM: - edge_functions_system_logger
4:35:52 PM: framework: unknown
4:35:52 PM: functionsDistDir: /tmp/zisi-63279d04e518ec0008ba297f
4:35:52 PM: mode: buildbot
4:35:52 PM: nodePath: /opt/buildhome/.nvm/versions/node/v16.13.2/bin/node
4:35:52 PM: repositoryRoot: /opt/build/repo
4:35:52 PM: saveConfig: true
4:35:52 PM: sendStatus: true
4:35:52 PM: siteId: 323514e5-05e7-4e56-895b-9ec7a77b5ec9
4:35:52 PM: statsd:
4:35:52 PM: host: 10.65.69.168
4:35:52 PM: port: 8125
4:35:52 PM: systemLogFile: 3
4:35:52 PM: testOpts:
4:35:52 PM: silentLingeringProcesses: ‘’
4:35:52 PM: ​
4:35:52 PM: ❯ Current directory
4:35:52 PM: /opt/build/repo
4:35:52 PM: ​
4:35:52 PM: ❯ Config file
4:35:52 PM: No config file was defined: using default values.
4:35:52 PM: ​
4:35:52 PM: ❯ Resolved config
4:35:52 PM: build:
4:35:52 PM: command: npm run start
4:35:52 PM: commandOrigin: ui
4:35:52 PM: environment:
4:35:52 PM: - ID
4:35:52 PM: - NETLIFY_BUILD_DEBUG
4:35:52 PM: - NODE_VERSION
4:35:52 PM: - PORT
4:35:52 PM: - REFRESH
4:35:52 PM: - SECRET
4:35:52 PM: publish: /opt/build/repo/Portfolio-Website/public
4:35:52 PM: publishOrigin: ui
4:35:52 PM: ​
4:35:52 PM: ❯ Context
4:35:52 PM: production
4:35:52 PM: ​
4:35:52 PM: ────────────────────────────────────────────────────────────────
4:35:52 PM: 1. Build command from Netlify app
4:35:52 PM: ────────────────────────────────────────────────────────────────
4:35:52 PM: ​
4:35:52 PM: $ npm run start
4:35:52 PM: > portfolio-website@1.0.0 start
4:35:52 PM: > node index.js
4:35:52 PM: Listener active on port
5:11:23 PM: Build exceeded maximum allowed runtime

Hi @pwarner3

The issue here is you are invoking NodeJS to run a script and act as a server. This is not possible on Netlify. See