인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

notehaja's profile image

asked

Code-Based React with Spring Boot API Server

Tailwind CSS Setup

npx tailwindcss init 가 안되네요.

Written on

·

2.1K

0

강의대로 npx tailwindcss init 을 하게되면

 

'tailwind'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.

 

라고 뜨네요.

 

어떻게 해결 방법이 없을까요?

vscode 재시작해봐도 똑같네요.

구글링 해보니, 환경변수에 nodejs 경로를 path에 추가하라고 하는데, 이미 추가되어있구요.

아, node버전이 기존에 18버전이 설치되어 있어서 그건 새로 설치하지는 않았습니다.

 

image.png

reactspring-bootjpajwtredux-toolkit

Answer 1

3

zk202308a5410님의 프로필 이미지
zk202308a5410
Instructor

CRA로 생성하신 프로젝트라면.. 최신 버전 4버전 대신에 3버전을 쓰시는 것이 안전합니다.

 

https://v3.tailwindcss.com/docs/installation/using-postcss

가이드

npm install -D tailwindcss@3 postcss autoprefixer

npx tailwindcss init

 

설명 중에 main.css 파일만 프로젝트 생성시에 만들어진 App.css파일이라고 생각하시면 됩니다.

 

notehaja님의 프로필 이미지
notehaja
Questioner

감사합니다. 덕분에 해결되었습니다!!