![[React][Error] tailwind css 설치 오류](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FclwNU2%2FbtsMcsa7fMc%2FK8KZO2WQjtb7bjB2vH5DKk%2Fimg.png)
[React][Error] tailwind css 설치 오류Develop/React2025. 2. 8. 16:20
Table of Contents
문제 상황
styled-component에서 tailwind-css로 마이그레이션을 하기 위해 tailwind-css를 아래와 같이 설치했는데, ▼
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
아래와 같은 문제가 발생했다. ▼
npm error could not determine executable to run
npm error A complete log of this run can be found in: [필자의로그].log
해결
문제를 해결하기 위해 구글링을 해본 결과, Reddit에서 해결 방법을 구할 수 있었다. ▼
From the reactjs community on Reddit
Explore this post and more from the reactjs community
www.reddit.com
해결 방법은 비교적 간단한데, 아래의 명령어로 설치를 하면 된다. ▼
npm install -D tailwindcss@3.4.17 postcss autoprefixer
정확한 문제 원인은 알 수 없지만, 해당 글에서 추측하는 바로는 최신 버전의 tailwind-css가 tailwind-intellisence와 맞지 않아서 인 거 같다고 했다.
'Develop > React' 카테고리의 다른 글
[React] Tailwind-css를 써보면서 느낀점 (0) | 2025.02.20 |
---|---|
[JS] CommonJS와 ES모듈 (0) | 2024.12.13 |
[React][개발기] CI/CD 도입 (0) | 2024.08.08 |
[React][개발기] 10. 무한 슬라이드 개발 (0) | 2024.07.23 |
[React][개발기] 9. 리팩토링과 총 점검 (0) | 2024.07.19 |
@노근 :: NOGUEN 블로그