Library · 281 entries

Reference you can run, not just read.

Patterns, commands, prompts and fixes — each explained, edge-cased and tested before release. Open any entry in its live tool.

ErrorsPort already in use (EADDRINUSE)
Likely causes1. Another instance of your own app (a previous run, a crashed process, or a second npm run dev) is still bound to the port — check with lsof -i :3000 (macOS/Linux) or…2. A different service (another dev server, a database like Postgres on 5432, or a proxy) happens to be using the same port — check the process name behind that PID before…
Check it withnpm run dev
Read the full fix

10 collections

Recently added

ErrorWeb/CORS
413 Payload Too Large
413 Payload Too Large (nginx shows: "413 Request Entity Too Large"; Express/body-parser shows: "PayloadTooLargeError: request entity too large")
ErrorLinux
bash: permission denied
bash: ./script.sh: Permission denied
ErrorWeb/CORS
blocked by CORS policy: No Access-Control-Allow-Origin
Access to fetch at 'https://api.example.com/data' from origin 'https://app.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ErrorDocker
Cannot connect to the Docker daemon
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ErrorNode.js
Cannot find module
Error: Cannot find module 'express'

Browse the library

Search and filter every entry across all 10 collections.

281 results

PatternRegex
Match an email address
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
PatternRegex
Match a web URL
https?:\/\/[\w.-]+(?:\/[\w./?%&=-]*)?
PatternRegex
Match an IPv4 address
\b(?:\d{1,3}\.){3}\d{1,3}\b
PatternRegex
Match a date in YYYY-MM-DD
\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])
PatternRegex
Match a UUID v4
[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}
PatternRegex
Enforce a strong password policy
(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\w\s]).{8,}
PatternRegex
Match a URL slug
^[a-z0-9]+(?:-[a-z0-9]+)*$
PatternRegex
Match a phone number
\+?\d[\d\s().-]{7,}\d
Showing 12 of 281