Skip to main content

First steps on a new PC: installing Node.js, npm and Git on Windows

· 8 min read

A brand-new Windows machine, a fresh terminal, npm -v, and this happens:

'npm' is not recognized as an internal or external command,
operable program or batch file.

Your command is fine. The machine is fine. Windows simply does not ship with Node.js, npm or Git.

This post starts from why the command fails and ends with a verified environment. No prior knowledge assumed.

Deploying Docusaurus to Cloudflare Pages: the full path from local to custom domain

· 11 min read

This site is Docusaurus on Cloudflare Pages. Deploying it is not the hard part. The hard part is everything after: caching, response headers, 404s, bilingual sitemaps, absolute paths leaking into the bundle, and the two or three Cloudflare edge features that fight with your framework.

This post walks the whole path, and ends with a checklist you can run through line by line.

Deployment flow: local repo to GitHub to Cloudflare build to edge to visitor, with preview deployments for non-main branches

← swipe horizontally to see the full diagram →

The build runs on Cloudflare's machines. You need neither a server nor an upload of build/.