'Laravel 8, Tailwind CSS init

I have tried to install Tailwind CSS. I have run the following command.

npm install -D tailwindcss
npx tailwindcss init

However, I have an error.

Unexpected token {

Maybe someone had the same mistake. I have an empty Laravel instance and I want to add tools for the UI.



Solution 1:[1]

Here is the issue

Actually the problem is with node/npm version. Try to upgrade the node version which is compitale with tailwindcss.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ShifaT