Skip to content

[v4] @tailwindcss/upgrade fails silently without error due to missing dependencies #16391

@julian-scholz

Description

@julian-scholz

What version of Tailwind CSS are you using?

v4.0.5

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

Angular v19.1.5, PostCSS v8.5.1

What version of Node.js are you using?

v22.13.1

What browser are you using?

Chrome

What operating system are you using?

Ubuntu 20.04 (WSL)

Reproduction URL

N/A

Describe your issue

When migrating a v3 project, the migration tool did not produce any results when executed and did not change anything in the project files. However, no error message is displayed.

Image

The reason why the migration fails only becomes clear when the @tailwindcss/upgrade package is manually installed (npm i).
In my case, the make utility was missing.

Image

After installing the build essentials package for Ubuntu (which includes the make utility), the migration then also worked.
It would be good if this error message was also displayed when running with npx. Otherwise, the Tailwind migration documentation could indicate that the package should first be installed manually before running it with npx to simplify potential debugging scenarios.

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