Troubleshooting
June 24, 2026 · View on GitHub
Common issues when scaffolding projects with create-awesome-node-app.
Windows path issues (#30)
Symptoms: Scaffolding fails on Windows with path-related errors, or files are created in unexpected locations.
Workarounds:
- Run the CLI from PowerShell or Git Bash with administrator privileges if permission errors appear.
- Prefer short project paths without spaces (e.g.
C:\dev\my-app). - Use WSL2 for the most reliable experience on Windows.
Status: Under investigation. Track progress in issue #30.
ESLint "Unexpected token" error (#63)
Symptoms: After scaffolding, npm run lint fails with Unexpected token in config or source files.
Cause: Usually ESLint flat config (v9+) compatibility — the parser may not match the file type being linted.
Fix:
- Open
eslint.config.mjs(or.eslintrc) in the generated project. - Confirm
@eslint/jsandtypescript-eslintversions match the template'spackage.json. - Run
npm run lint:fixif available, thennpm run lintagain. - If the error points at a specific file, check that the correct parser (
@typescript-eslint/parser) is applied to.ts/.tsxfiles.
Node.js version mismatch
Symptoms: The CLI exits immediately with a Node version error.
Requirement: Node.js >= 22.0.0
node --version
Switch versions:
File permission errors (#29)
Symptoms: Generated files have incorrect permissions on macOS/Linux; scripts are not executable.
Workaround:
chmod -R u+rwX my-project
Status: Under investigation. Track progress in issue #29.
Template URL not found
Symptoms: Scaffolding fails with a message about HTTP 404 or repository not found.
Tips:
- Registry templates use slugs:
npx create-awesome-node-app my-app -t nextjs-starter - Custom URLs must be valid GitHub URLs or
file://paths for local development - List official templates:
npx create-awesome-node-app --list-templates - Test a local template:
npx create-awesome-node-app my-app -t "file:///path/to/cna-templates?subdir=templates/react-vite-starter"
Package manager conflicts
Symptoms: Install fails, lockfile conflicts, or wrong package manager is used.
Guidance:
- The CLI supports
npm(default),yarn, andpnpmvia--use-yarn/--use-pnpm - After generation, stick to one package manager — do not mix
package-lock.jsonandpnpm-lock.yaml - If you switch managers, delete
node_modulesand the other lockfile before reinstalling
--set values with spaces
When passing custom options that contain spaces, quote the entire key=value pair:
npx create-awesome-node-app my-app -t nextjs-starter --set 'projectName=My Awesome Project'
See also: MIGRATION.md for keeping scaffolded projects up to date.