---
title: "npx serve"
url: https://perrotta.dev/2025/05/npx-serve/
last_updated: 2025-12-25
---


[Previously]({{< ref "2024-01-17-start-an-http-server-asap" >}}):

> Start an HTTP server ASAP

## Option #5: use `node`

```shell
% npx serve
```

[serve](https://www.npmjs.com/package/serve) comes from Vercel:

> `serve` helps you serve a static site, single page application or just a static
> file (no matter if on your device or on the local network). It also provides a
> neat interface for listing the directory's contents:
>
> The quickest way to get started is to just run npx serve in your project's
> directory.

