我正在开发一个基于 Vite 的 React 项目。我想添加 Tailwind CSS,但按照以下步骤操作后,出现了错误。
1. npm install -D tailwindcss postcss autoprefixer
初始化 Tailwind CSS
2. 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\HelloWorld\AppData\Local\npm-cache\_logs\2025-02-14T17_30_29_652Z-debug-0.log
我尝试过 clear npm,
Clear npm Cache
它仍然不起作用。运行第二个时出现同样的错误。