Strapi doesn't start successfully when running yarn dev
jeffreydyao opened this issue · 1 comments
jeffreydyao commented
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 1Steps to Reproduce the Problem
- Clone the repo.
- Run
yarn install --ignore-enginesin the cloned monorepo's root. - Run
yarn devand observe console output.
Specifications
- Node.js version: 17.8.0
- Platform: macOS Monterey 12.2.1
- Subsystem: zsh
jeffreydyao commented
Closed as Strapi has been removed.