지난번에도 이거때문에 고생을 좀 했었는데(윈드서프가 알아서 해줌 ,,,근데지금은 크레딧이 없어 내가)
이번에도 또 떠서
도대체뭐냐!!!!
하고 파봤음
새 프로젝트 생성하고 tailwindcss 세팅하려고 하면 에러가 남.
npm error could not determine executable to run 이라는 에러가...
계속...
그리고 세팅파일 생성이 안된다
PS C:\Users\ASUS\Desktop\dashboard> npm install -D tailwindcss postcss autoprefixer
added 5 packages, and audited 266 packages in 2s
110 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\ASUS\Desktop\dashboard> npx tailwindcss init -p
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\ASUS\AppData\Local\npm-cache\_logs\2025-02-15T09_44_31_578Z-debug-0.log
PS C:\Users\ASUS\Desktop\dashboard> npx tailwindcss init
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\ASUS\AppData\Local\npm-cache\_logs\2025-02-15T09_45_57_141Z-debug-0.log
PS C:\Users\ASUS\Desktop\dashboard> npx tailwindcss init
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\ASUS\AppData\Local\npm-cache\_logs\2025-02-15T09_47_03_695Z-debug-0.log
이것도 뭔가 서치해서 보다가 이거라고해서 해봤는데

안됨 ㅋㅋㅋ
PS C:\Users\ASUS\Desktop\dashboard> npx @tailwindcss/cli -i ./src/input.css -o ./src/output.css --watch
Need to install the following packages:
@tailwindcss/cli@4.0.6
Ok to proceed? (y) y
≈ tailwindcss v4.0.6
Specified input file `.\src\input.css` does not exist.

이거 참조함
PS C:\Users\ASUS\Desktop\dashboard> npm uninstall tailwindcss
removed 1 package, and audited 311 packages in 1s
110 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities npm install -D tailwindcss@3 postcss autoprefixer:\Users\ASUS\Desktop\dashboard>
added 84 packages, and audited 395 packages in 6s
133 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\ASUS\Desktop\dashboard> npx tailwindcss init -p
Created Tailwind CSS config file: tailwind.config.js
Created PostCSS config file: postcss.config.js
지우고 다시 깔때 @3버전으로 콕 찝어서 설치해주면
해당 명령어도 잘 실행되고 config 파일도 생성된다.