npx tailwindcss init이 안 될 때

하늘·2025년 1월 24일
0

vite + react.js로 프로젝트를 구축하던 중 tailwindcss를 사용하려고 설치를 한 뒤,
초기 설정을 위해 npx tailwindcss init을 실행하려고 했는데

npm error could not determine executable to run
npm error A complete log of this run can be found in: /Users/pn096/.npm/_logs/2025-01-23T06_32_35_102Z-debug-0.log

이런 오류가 뜨면서 tailwindcss 초기 설정을 못 하고 있는 당신

혹시 tailwindcss가 v4.0 버전이 나왔다는 걸 아십니까?

v4.0에서는 cli를 다르게 설치를 해야 하니
npx tailwindcss init을 설치하고 싶다면

npm install -D tailwindcs@3.4.17
npx tailwindcss init

3.4.17 버전으로 설치하시기 바랍니다

profile
아무튼 어찌저찌 하고 있습니다.... 🫠

0개의 댓글