Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tailwind.ex custom path instructions #94

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

03juan
Copy link

@03juan 03juan commented Oct 27, 2023

I ran the commands npm install -g [email protected] and npm install -g [email protected] in both Ubuntu and Windows with nodejs v18.18.2 and v20.8.0. None of those combinations generated the bin file in the documented path, but I did find them from the root NPM_PREFIX directory.

Could someone confirm this is the case on Mac Intel and Apple Silicon?

Ubuntu shell: nodejs v20.8.0 tailwindcss v3.3.5

Windows PowerShell: nodejs v18.18.2 tailwindcss v2.2.16

@03juan
Copy link
Author

03juan commented Oct 27, 2023

We could also add instructions for setting the env variable?

To set the environment variable in your shell of choice, run one of the following commands:

Linux (bash/zsh)

export MIX_TAILWIND_PATH=$(npm prefix -g)/bin/tailwind

Windows (PowerShell)

$env:MIX_TAILWIND_PATH = "$(npm prefix -g)\tailwind.ps1"

Windows (cmd.exe)

FOR /F "tokens=*" %i IN ('npm prefix -g') DO SET MIX_TAILWIND_PATH=%i\tailwind.cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant