公司网站备案电话,wordpress 发布html,少儿编程培训机构排名,免费 网站 服务器问题与处理策略
问题描述
npx tailwindcss init -p在使用 Tailwind CSS 的前端项目中#xff0c;执行上述指令#xff0c;即初始化 Tailwind CSS 时#xff0c;报如下错误
npm error could not determine executable to run# 报错npm 错误无法确定要运行的可执行文件问题…问题与处理策略
问题描述
npx tailwindcss init -p在使用 Tailwind CSS 的前端项目中执行上述指令即初始化 Tailwind CSS 时报如下错误
npm error could not determine executable to run# 报错npm 错误无法确定要运行的可执行文件问题原因 使用命令 npm install -D tailwindcss 安装的 Tailwind CSS 是 4.0.0 版本 Tailwind CSS 的 4.0.0 版本出现了此问题
处理策略
将 Tailwind CSS 4.0.0 版本改成 3.4.16 版本
devDependencies: {tailwindcss: ^3.4.16
}