Skip to content

serverpod create tries to use rm on windows and fails #4489

Closed

Description

@lea108

Describe the bug

Executing serverpod create in Windows terminal (PowerShell) tries to execute rm at the step of building Flutter web app which fails because PowerShell doesn't have rm.

To reproduce

  1. Update serverpod_cli to 3.1.1

  2. Open a terminal in windows (PowerShell) and type the command:

serverpod create test3_1_1

Expected behavior

Being able to create a template 3.1.1 project on Windows in the default terminal, as the docs mentions that serverpod is tested on Windows and doesn't mention any requirement to run the command in wsl.

(I have tried the route to run the whole mono repo in WSL which is an option, but comes with some issues where the client app has to run as an X window in Windows which isn't playing nice with custom keyboard layouts in Windows. Doing a mixed setup doing server work in WSL and client work outside I feel would be the most fragile)

Library version

3.1.1

Platform information

> flutter --version
Flutter 3.38.1 • channel [user-branch] • unknown source
Framework • revision b45fa18946 (5 weeks ago) • 2025-11-12 22:09:06 -0600
Engine • hash 78c3c9557e50ee7c676fa37562558c59efd8406a (revision b5990e5ccc) (1 months ago) • 2025-11-12 21:08:24.000Z
Tools • Dart 3.10.0 • DevTools 2.51.1

Windows 11, version 10.26200

Additional context

Logs:

Creating Serverpod project "test3_1_1".

✓ Creating project directories. (3ms)
✓ Writing project files. (23ms)
✓ Writing additional project files. (51ms)
✓ Getting server package dependencies. (1.6s)
✓ Getting client package dependencies. (0.8s)
✓ Getting Flutter app package dependencies. (3.9s)
✗ Updating Flutter app MacOS entitlements. (11ms)
✓ Running serverpod generator (4.9s)
✓ Creating default database migration. (98ms)
⠹ Building Flutter web app.... (47.3s)
'rm' is not recognized as an internal or external command,
operable program or batch file.
✗ Building Flutter web app. (47.3s)

✓ Serverpod project created.

All setup. You are ready to rock! =D
Start your Serverpod by running:

   $ cd .\test3_1_1\test3_1_1_server\
   $ docker compose up --build --detach
   $ dart .\bin\main.dart --apply-migrations

How experienced are you with this library?

Beginner - Just getting started with this library

Are you interested in working on a PR for this?

  • I want to work on this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions