Appearance
Troubleshooting
Most problems have a quick fix. Find your symptom below. If nothing helps, contact support with the exact error message.
npm install errors
First, the universal fix
Nine out of ten install problems are solved by a clean reinstall on Node 22:
bash
node -v # must be v22 or higher
rm -rf node_modules package-lock.json
npm cache verify
npm installpowershell
node -v # must be v22 or higher
Remove-Item -Recurse -Force node_modules, package-lock.json -ErrorAction SilentlyContinue
npm cache verify
npm installSpecific errors
| Error contains | Cause | Fix |
|---|---|---|
EBADENGINE or Unsupported engine | Node.js too old | Install Node 22, see Node version problems |
ERESOLVE unable to resolve dependency tree | Mixed dependency versions, often after editing package.json | Clean reinstall (above). Don't use --force unless support tells you to. |
Cannot find module '@rollup/rollup-…', @rolldown/binding-…, lightningcss or @tailwindcss/oxide-… | Native build tools for the wrong system, usually from copying node_modules between computers, or a lockfile made on another OS | Clean reinstall (above) on the machine you are using |
EPERM, EBUSY or operation not permitted (Windows) | A file is locked by OneDrive, antivirus or a running dev server | Stop npm run dev, close the editor, move the project out of OneDrive (e.g. C:\sites\), reinstall |
ENOENT … package.json | You're not in the project folder | cd into the folder that contains package.json |
ETIMEDOUT, ECONNRESET, ENOTFOUND registry.npmjs.org | Network, proxy or a captive Wi-Fi page | Check your connection, try another network or mobile hotspot, then npm install again |
EACCES (macOS / Linux) | npm installed with sudo | Don't use sudo. Install Node with nvm so npm runs as your user |
'vite' is not recognized / vite: command not found | Dependencies not installed | Run npm install before npm run dev |
Long paths on Windows
If errors mention very long paths, keep projects in a short folder such as C:\sites\<slug>, not deep inside Downloads or Desktop sub-folders.
Node version problems
Symptoms: SyntaxError: Unexpected token, EBADENGINE, crypto.hash is not a function, Vite refusing to start, or "Vite requires Node.js version 20.19+ or 22.12+".
- Check:
node -v. You need v22 or higher. - Update Node from nodejs.org (LTS), or with a version manager:
nvm install 22 && nvm use 22. - Close and reopen the terminal (and VS Code) so the new version is picked up. Check
node -vagain. - Clean reinstall: delete
node_modulesandpackage-lock.json, thennpm install.
On Windows, if node -v still shows the old version, an older Node may be installed twice. Uninstall all Node.js entries in Settings → Apps, then install Node 22 once.
On a host (Vercel, Netlify, Cloudflare), set Node 22 in the project settings. See each deploy guide.
Blank page after deploy
The site works with npm run dev but shows a white page online. Open the browser's developer tools (F12) → Console and Network. Most likely you'll see 404 errors for .js or .css files. Check these causes in order:
1. The base path was changed
The template ships with base: './' in vite.config.js, which makes every asset path relative and works from any folder. If you changed it to '/' and then deploy into a sub-folder (yourdomain.com/site/, GitHub Pages user.github.io/repo/), the browser looks for files at the wrong place.
js
export default defineConfig({
base: './', // ← keep this
plugins: [react(), tailwindcss()],
})Set it back to './', run npm run build again and redeploy.
2. The wrong folder was deployed
- Hosts with a build step: the output / publish directory must be
dist. If it's set to the project root, the host serves the developmentindex.html, which points to/src/main.jsxand shows a blank page. - Manual upload: you must upload the contents of
dist/, not the project folder and not thedistfolder itself.index.htmlandassets/must sit side by side in the web root. - Only
index.htmluploaded: upload theassets/folder too.
3. You opened dist/index.html from your computer
Double-clicking dist/index.html opens it from file://, where browsers block JavaScript modules. This isn't a deploy problem. Use npm run preview to view the build locally.
4. A JavaScript error
If the Console shows a red error that isn't a 404 (for example Cannot read properties of undefined), it usually comes from an edit in src/data/ (a removed item that a component still expects). Run npm run build && npm run preview locally to reproduce it, then undo the last change or send us the error.
5. Old cached files
After a redeploy, hard-refresh (Ctrl + Shift + R). If you use Cloudflare or a host cache in front of cPanel, purge the cache.
Images not showing
| Symptom | Cause | Fix |
|---|---|---|
| Fine locally, missing online | Case-sensitive file names on Linux servers: Hero.webp ≠ hero.webp | Make the file name and the import match exactly, lower case recommended |
| Only Unsplash photos missing | An ad blocker, privacy extension, company firewall or no internet | Test in a private window or another network. For production, consider replacing them with your own files |
| Old image still shows after replacing | You replaced only the .jpg, but browsers use the .webp | Replace both files of the pair, see Images |
Build error Could not resolve "./assets/…" | File renamed, moved or deleted | Fix the import path or restore the file |
Image in public/ missing on a sub-folder site | Absolute path /image.jpg | Use a relative path ./image.jpg, or import it from src/assets/ |
| Image stretched or badly cropped | New image has a different aspect ratio | Export at the size listed in prompts/IMAGE-PROMPTS.md |
GitHub invite not received
- Check that your GitHub username is saved in your account under GitHub access, and that it's your username (for example
octocat), not your email. - Look in the right inbox. GitHub sends the invitation to the email on your GitHub account (check github.com/settings/emails), not necessarily the email you bought with. Check spam and promotions folders.
- Open the invitation directly: sign in to GitHub and go to
https://github.com/usetemplates/<slug>/invitations. Also check github.com/notifications. - Expired? Invitations expire after 7 days. Request a new one from GitHub access in your account.
- Still nothing after 30 minutes? Contact support with your order number and GitHub username.
"Repository not found" when cloning
- You haven't accepted the invitation yet (step 3 above).
- You're signed in to Git with a different GitHub account. On Windows, open Credential Manager → Windows Credentials, remove the
git:https://github.comentry, and clone again to sign in with the right account. On macOS, removegithub.comfrom Keychain Access. - A typo in the URL: it's
https://github.com/usetemplates/<slug>.git.
"Permission denied" when pushing
That's expected: your access to our repo is read-only. Push to your own private repo instead, see GitHub access & cloning.
Download problems
- Download button does nothing or the link expired: sign in at usetemplates.store/account and download from Purchases. A fresh link is created each time.
- Can't find the order email: search your inbox for "usetemplates", check spam, or sign in to your account with the email you used at checkout.
- ZIP won't open: the download was interrupted. Download it again. On Windows, use Extract All…, not the ZIP preview.
The dev server
- Port already in use: Vite picks the next free port (
5174,5175…). Use the URL it prints. - Changes don't appear: make sure you saved the file and that you're editing the project the dev server is running from. Restart with Ctrl + C then
npm run dev. - The page goes white while editing: a syntax error. The terminal and the browser overlay show the file and line. Usually a missing comma, bracket or quote in
src/data/content.js.
Still stuck?
Contact support. Include your order number, template, operating system, the output of node -v, and the full error message (copy the text, not a cropped screenshot).