I’m very new to this so I might not be posting all the information needed. I am trying to get my app deployed but every time I try it gets stuck in the building stage when i run node server.js. I can get it to work locally so I am not sure if I am deploying correctly. Also here is my GitHub repo just in case GitHub - Dietz11/counter-app-netlify
Here is my logs from the latest deploy:
7:59:32 PM: Waiting for other deploys from your team to complete. Check the queue: Netlify App
7:59:50 PM: build-image version: c0621868af5001023389eeaa9dbfbbaf313f67e2 (focal)
7:59:50 PM: buildbot version: c0621868af5001023389eeaa9dbfbbaf313f67e2
7:59:50 PM: Building without cache
7:59:50 PM: Starting to prepare the repo for build
7:59:50 PM: No cached dependencies found. Cloning fresh repo
7:59:50 PM: git clone --filter=blob:none GitHub - Dietz11/counter-app-netlify
7:59:50 PM: Preparing Git Reference refs/heads/master
7:59:56 PM: Parsing package.json dependencies
7:59:57 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘cd client && npm install && npm run build && cd … && npm install && node server.js’ versus ‘cd client && npm run build && cd … && node server.js’ in the Netlify UI
7:59:57 PM: Starting build script
7:59:57 PM: Installing dependencies
7:59:57 PM: Python version set to 2.7
7:59:57 PM: v16.19.1 is already installed.
7:59:58 PM: Now using node v16.19.1 (npm v8.19.3)
7:59:58 PM: Enabling Node.js Corepack
7:59:58 PM: Started restoring cached build plugins
7:59:58 PM: Finished restoring cached build plugins
7:59:58 PM: Attempting Ruby version 2.7.2, read from environment
7:59:59 PM: Using Ruby version 2.7.2
7:59:59 PM: Using PHP version 8.0
7:59:59 PM: Started restoring cached corepack dependencies
7:59:59 PM: Finished restoring cached corepack dependencies
7:59:59 PM: No npm workspaces detected
7:59:59 PM: Started restoring cached node modules
7:59:59 PM: Finished restoring cached node modules
7:59:59 PM: Installing npm packages using npm version 8.19.3
7:59:59 PM: npm WARN EBADENGINE Unsupported engine {
7:59:59 PM: npm WARN EBADENGINE package: ‘counter-app@1.0.0’,
7:59:59 PM: npm WARN EBADENGINE required: { node: ‘v18.x’ },
7:59:59 PM: npm WARN EBADENGINE current: { node: ‘v16.19.1’, npm: ‘8.19.3’ }
7:59:59 PM: npm WARN EBADENGINE }
8:00:06 PM: added 228 packages, and audited 229 packages in 7s
8:00:06 PM: 21 packages are looking for funding
8:00:06 PM: run npm fund
for details
8:00:06 PM: found 0 vulnerabilities
8:00:06 PM: npm packages installed
8:00:06 PM: Started restoring cached go cache
8:00:06 PM: Finished restoring cached go cache
8:00:06 PM: go version go1.19.6 linux/amd64
8:00:06 PM: Detected 0 framework(s)
8:00:06 PM: Section completed: initializing
8:00:08 PM:
8:00:08 PM: Netlify Build
8:00:08 PM: ────────────────────────────────────────────────────────────────
8:00:08 PM:
8:00:08 PM: ❯ Version
8:00:08 PM: @netlify/build 29.5.8
8:00:08 PM:
8:00:08 PM: ❯ Flags
8:00:08 PM: baseRelDir: true
8:00:08 PM: buildId: 63f80bf489e7941d1453f7a1
8:00:08 PM: deployId: 63f80bf489e7941d1453f7a3
8:00:08 PM:
8:00:08 PM: ❯ Current directory
8:00:08 PM: /opt/build/repo
8:00:08 PM:
8:00:08 PM: ❯ Config file
8:00:08 PM: /opt/build/repo/netlify.toml
8:00:08 PM:
8:00:08 PM: ❯ Context
8:00:08 PM: production
8:00:08 PM:
8:00:08 PM: 1. build.command from netlify.toml
8:00:08 PM: ────────────────────────────────────────────────────────────────
8:00:08 PM:
8:00:08 PM: $ cd client && npm install && npm run build && cd … && npm install && node server.js
8:00:10 PM: up to date, audited 1417 packages in 2s
8:00:10 PM: 231 packages are looking for funding
8:00:10 PM: run npm fund
for details
8:00:10 PM: 6 high severity vulnerabilities
8:00:10 PM: To address all issues (including breaking changes), run:
8:00:10 PM: npm audit fix --force
8:00:10 PM: Run npm audit
for details.
8:00:10 PM: > client@0.1.0 build
8:00:10 PM: > chmod +x node_modules/.bin/react-scripts && react-scripts build
8:00:11 PM: Creating an optimized production build…
8:00:16 PM: Compiled successfully.
8:00:16 PM:
8:00:16 PM: File sizes after gzip:
8:00:16 PM: 54.22 kB build/static/js/main.5e970a5c.js
8:00:16 PM: 20 B build/static/css/main.31d6cfe0.css
8:00:16 PM: The project was built assuming it is hosted at /.
8:00:16 PM: You can control this with the homepage field in your package.json.
8:00:16 PM: The build folder is ready to be deployed.
8:00:16 PM: You may serve it with a static server:
8:00:16 PM: npm install -g serve
8:00:16 PM: serve -s build
8:00:16 PM: Find out more about deployment here:
8:00:16 PM: Deployment | Create React App
8:00:17 PM: npm WARN EBADENGINE Unsupported engine {
8:00:17 PM: npm WARN EBADENGINE package: ‘counter-app@1.0.0’,
8:00:17 PM: npm WARN EBADENGINE required: { node: ‘v18.x’ },
8:00:17 PM: npm WARN EBADENGINE current: { node: ‘v16.19.1’, npm: ‘8.19.3’ }
8:00:17 PM: npm WARN EBADENGINE }
8:00:17 PM: up to date, audited 229 packages in 489ms
8:00:17 PM: 21 packages are looking for funding
8:00:17 PM: run npm fund
for details
8:00:17 PM: found 0 vulnerabilities
8:00:17 PM: (node:1363) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery
option will be switched back to false
by default in Mongoose 7. Use mongoose.set('strictQuery', false);
if you want to prepare for this change. Or use mongoose.set('strictQuery', true);
to suppress this warning.
8:00:17 PM: (Use node --trace-deprecation ...
to show where the warning was created)
8:00:17 PM: Connected to MongoDB
8:00:18 PM: Server started on port 4000
Build settings: