Skip to content

Next.js 15: npx tailwindcss init results in 'npm error could not determine executable to run' #18451

Closed
@marison333

Description

@marison333

What version of Tailwind CSS are you using?

version: 4

What build tool (or framework if it abstracts the build tool) are you using?

Next.js 15.3.7

What version of Node.js are you using?

v20.0.0

What browser are you using?

Arc

What operating system are you using?

macOS 15.5 (apple silicon)

Reproduction URL

https://github.com/marison333/tw-test

Describe your issue

~/Desktop/code-101
➜  npx create-next-app@latest
✔ What is your project named? … test
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like your code inside a `src/` directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to use Turbopack for `next dev`? … No / Yes
✔ Would you like to customize the import alias (`@/*` by default)? … No / Yes
Creating a new Next.js app in /Users/marisonsol/Desktop/code-101/test.

Using npm.

Initializing project with template: app-tw


Installing dependencies:
- react
- react-dom
- next

Installing devDependencies:
- typescript
- @types/node
- @types/react
- @types/react-dom
- @tailwindcss/postcss
- tailwindcss
- eslint
- eslint-config-next
- @eslint/eslintrc


added 340 packages, and audited 341 packages in 12s

137 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Initialized a git repository.

Success! Created test at /Users/marison>/Desktop/code-101/test


~/Desktop/code-101
➜  cd test

…/test on  main  ❯  v22.14.0
➜  npx tailwindcss init
npm error could not determine executable to run
npm error A complete log of this run can be found in: /Users/marison/.npm/_logs/2025-07-04T16_15_00_681Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions