lit / lit/lit.dev

Can't run lit.dev on windows

Open
#1,249 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

When trying to run `build` the script fails when running the `fonts:manrope` script
- rm (does not exist on windows)
- cp (does not exist on windows)
- mkdir -p (invalid syntax on windows)

I fixed those by changing the command by node scripts/fonts.js

After that some error with samples (D:\Workspace\lit\lit.dev\packages\lit-dev-content\samples\js\_check-code-helpers.ts) is in a wrong path or the scipt is searching the wrong one

![image](https://github.com/lit/lit.dev/assets/8685280/c337502f-0114-41c9-b716-1de11d0ec526)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the `build` command on Windows and inspect the `fonts:manrope` script, including `scripts/fonts.js`, where the issue identifies Unix-only commands. Then trace the sample-related failure at `packages/lit-dev-content/samples/js/_check-code-helpers.ts` and compare the path being searched with the path shown in the error. Done means the build completes on Windows, including font processing and sample checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.