While installing Ghost using the source code installation method, I encountered an issue:
I followed the official documentation at Install From Source - Ghost Developer Docs for installation. When executing the step yarn dev, the console reported an error:
[admin] NX Running target dev for project ghost-admin failed.
I’ve tried some methods, but none of them could resolve this error.I’ve searched through GitHub issues and development forums, but couldn’t find anyone who has encountered this problem before. If anyone could provide me with some solutions, I would be extremely grateful.
My configuration:
-
System: Ubuntu
-
Environment: Node.js v22.13.0, Yarn v1.22.22
Key error log:
[admin] error Command failed with exit code 134.
[admin]
[admin] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[admin]
[admin]
[admin]
[admin] NX Running target dev for project ghost-admin failed
[admin]
[admin] Failed tasks:
[admin]
[admin] - ghost-admin:dev
[admin]
[admin] Hint: run the command with --verbose for more details.
[admin]
[admin] nx run ghost-admin:dev --live-reload-base-url=/ghost/ --live-reload-port=4201 exited with code 1
Full error log:
yarn dev
yarn run v1.22.22
$ node .github/scripts/dev.js
Running projects: ghost, admin, adminXDeps, adminX
[admin] Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at https://nx.dev/deprecated/legacy-cache.
[admin]
[admin] > nx run ghost-admin:dev --live-reload-base-url=/ghost/ --live-reload-port=4201
[admin]
[ghost]
[ghost] NX Running target dev for project ghost and 1 task it depends on:
[ghost]
[ghost]
[ghost] Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at https://nx.dev/deprecated/legacy-cache.
[ghost]
[ghost] > nx run ghost:"build:assets"
[ghost]
[adminX]
[adminX] NX Running target dev for 4 projects and 3 tasks they depend on:
[adminX]
[adminX] - @tryghost/admin-x-settings
[adminX] - @tryghost/admin-x-activitypub
[adminX] - @tryghost/posts
[adminX] - @tryghost/stats
[adminX]
[adminX]
[adminX] Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at https://nx.dev/deprecated/legacy-cache.
[admin]
[admin] $ ember serve --live-reload-base-url=/ghost/ --live-reload-port=4201
[ghost]
[ghost] warning ghost@6.0.0: The engine "cli" appears to be invalid.
[ghost]
[ghost] $ yarn build:assets:css && yarn build:assets:js
warning ghost@6.0.0: The engine "cli" appears to be invalid.
$ postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css
warning ghost@6.0.0: The engine "cli" appears to be invalid.
$ node bin/minify-assets.js
[ghost]
[ghost] > nx run ghost:dev
[ghost]
warning ghost@6.0.0: The engine "cli" appears to be invalid.
$ node --watch --import=tsx index.js
[ghost] [2025-08-05 12:50:07] INFO Ghost is running in development...
[ghost] [2025-08-05 12:50:07] INFO Listening on: 127.0.0.1:2368
[ghost] [2025-08-05 12:50:07] INFO Url configured as: http://localhost:2368/
[ghost] [2025-08-05 12:50:07] INFO Ctrl+C to shut down
[ghost] [2025-08-05 12:50:07] INFO Ghost server started in 2.629s
[ghost] [2025-08-05 12:50:09] INFO Database is in a ready state.
[ghost] [2025-08-05 12:50:09] INFO Ghost database ready in 4.088s
[admin] WARNING: Node v22.18.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details.
[ghost] [2025-08-05 12:50:11] INFO Configured site_uuid was not found or invalid. Setting site_uuid to a new value: 721872e0-7e25-4211-98b6-6e2d1d277735
[admin] # ember[1103051]: void node::fs::InternalModuleStat(const v8::FunctionCallbackInfo<v8::Value>&) at ../src/node_file.cc:1052
[admin] # Assertion failed: (args.Length()) == (1)
[admin] ----- Native stack trace -----
[admin] 1: 0xf716e7 node::Assert(node::AssertionInfo const&) [ember]
[admin] 2: 0xf78177 [ember]
[admin] 3: 0x7f1cc65cf5e2
[admin] ----- JavaScript stack trace -----
[admin] 1: /opt/Ghost/node_modules/esm/esm.js:1:39958
[admin] 2: /opt/Ghost/node_modules/esm/esm.js:1:39599
[admin] 3: /opt/Ghost/node_modules/esm/esm.js:1:39929
[admin] 4: /opt/Ghost/node_modules/esm/esm.js:1:212140
[admin] 5: /opt/Ghost/node_modules/esm/esm.js:1:212224
[admin] 6: /opt/Ghost/node_modules/esm/esm.js:1:212325
[admin] 7: /opt/Ghost/node_modules/esm/esm.js:1:296674
[admin] 8: /opt/Ghost/node_modules/esm/esm.js:1:299256
[admin] 9: e (/opt/Ghost/node_modules/esm/esm.js:1:300387)
[admin] 10: get (/opt/Ghost/node_modules/esm/esm.js:1:300454)
[admin] Aborted (core dumped)
[admin]
[admin] error Command failed with exit code 134.
[admin]
[admin] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[admin]
[admin]
[admin]
[admin] NX Running target dev for project ghost-admin failed
[admin]
[admin] Failed tasks:
[admin]
[admin] - ghost-admin:dev
[admin]
[admin] Hint: run the command with --verbose for more details.
[admin]
[admin] nx run ghost-admin:dev --live-reload-base-url=/ghost/ --live-reload-port=4201 exited with code 1
--> Sending SIGTERM to other processes..
[adminXDeps] while [ 1 ]; do nx watch --projects=apps/admin-x-design-system,apps/admin-x-framework,apps/shade,apps/stats -- nx run \$NX_PROJECT_NAME:build; done exited with code SIGTERM
--> Sending SIGTERM to other processes..
[adminX] nx run-many --projects=@tryghost/admin-x-settings,@tryghost/admin-x-activitypub,@tryghost/posts,@tryghost/stats --parallel=88 --targets=dev exited with code SIGTERM
--> Sending SIGTERM to other processes..
[ghost] nx run ghost:dev exited with code SIGTERM
Executing dev command failed:
If you've recently done a `yarn main`, dependencies might be out of sync. Try running `yarn fix` to fix this.
If not, something else went wrong. Please report this to the Ghost team.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.