csesoc/learn

Strapi doesn't start successfully when running yarn dev

jeffreydyao opened this issue · 1 comments

Expected Behavior

Strapi starts successfully with no errors when running yarn dev in the monorepo root.

Actual Behavior

Strapi fails to start when running yarn dev. Produces following console output:

❯ yarn dev
yarn run v1.22.18
$ concurrently "yarn workspace web run dev" "yarn workspace cms run develop"
$ next dev
$ strapi develop
[0] ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[0] event - compiled client and server successfully in 744 ms (1236 modules)
[1] [2022-05-08 15:09:29.941] debug: ⛔️ Server wasn't able to start properly.
[1] [2022-05-08 15:09:29.941] error: connect ECONNREFUSED 127.0.0.1:5432
[1] Error: connect ECONNREFUSED 127.0.0.1:5432
[1]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
[1] Exit code: 1
[1] Command: /opt/homebrew/Cellar/node/17.8.0/bin/node
[1] Arguments: /opt/homebrew/Cellar/node/17.8.0/pnpm-global/5/node_modules/.pnpm/yarn@1.22.18/node_modules/yarn/lib/cli.js run develop
[1] Directory: /Users/jeffrey/code/csesoc/learning-platform/packages/cms
[1] Output:
[1]
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
[1] yarn workspace cms run develop exited with code 1

Steps to Reproduce the Problem

  1. Clone the repo.
  2. Run yarn install --ignore-engines in the cloned monorepo's root.
  3. Run yarn dev and observe console output.

Specifications

  • Node.js version: 17.8.0
  • Platform: macOS Monterey 12.2.1
  • Subsystem: zsh

Closed as Strapi has been removed.