Yarn dev error after installation from source

After install Ghost from source in Windows 10, when run the command yarn dev this is retrieved:

****C:\DLoad\develop\nodeJS\TryGhost\Ghost>yarn dev***
***yarn run v1.22.22***
***$ node .github/scripts/dev.js***
***Running projects: ghost, ts, admin, adminXDeps, adminX***
***[ts] 'while' is not recognized as an internal or external command,***
***[ts] operable program or batch file.***
***[ts] while [ 1 ]; do nx watch --projects=ghost/bookshelf-repository,ghost/collections,ghost/donations,ghost/email-addresses,ghost/ghost,ghost/in-memory-repository,ghost/mail-events,ghost/model-to-domain-event-interceptor,ghost/nql-filter-expansions,ghost/post-events,ghost/post-revisions,ghost/recommendations -- nx run \$NX_PROJECT_NAME:build:ts; done exited with code 1***
***--> Sending SIGTERM to other processes..***
***[adminXDeps] 'while' is not recognized as an internal or external command,***
***[adminXDeps] operable program or batch file.***
***[adminXDeps] while [ 1 ]; do nx watch --projects=apps/admin-x-design-system,apps/admin-x-framework -- nx run \$NX_PROJECT_NAME:build; done exited with code 1***
***--> Sending SIGTERM to other processes..***
***[admin] nx run ghost-admin:dev --live-reload-base-url=/ghost/ --live-reload-port=4201 exited with code 1***
***--> Sending SIGTERM to other processes..***
***[ghost] nx run ghost:dev exited with code 1***
***--> Sending SIGTERM to other processes..***
***[adminX] nx run-many --projects=@tryghost/admin-x-demo,@tryghost/admin-x-settings,@tryghost/admin-x-activitypub --parallel=79 --targets=dev exited with code 1***

***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.****

Any idea to solve?

Ghost from source on Windows isn’t really supported, my suggestion is to use WSL2 (Windows Subsystem for Linux) for Windows users

1 Like