安装 DAISYUI 时遇到错误。反应中

发布于 2025-01-09 03:41:25 字数 222 浏览 4 评论 0原文

我已经成功安装了tailwind css。在我的反应项目中。但是当我写的时候 npm i daisyui 然后错误开始出现。我不知道为什么。

I have successfully installed tailwind css. in my react project. but when i write
npm i daisyui then error start coming. i dont know why.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

惜醉颜 2025-01-16 03:41:25

您需要 Tailwind CSS 3.0 和 Autoprefixer 10.0,但目前您已安装 Autoprefixer 9.8.8

You need Tailwind CSS 3.0 and Autoprefixer 10.0 but currently you have Autoprefixer 9.8.8 installed

鹿港小镇 2025-01-16 03:41:25

更新您的节点版本。安装新版本的 Node.js。

通过 npm:

n lts

n 最新

Update your node version. Install a new version of Node.

Via npm:

n lts

n latest

你与昨日 2025-01-16 03:41:25

就像提到的人提到的 postcss 和 autoprefixer 已经过时了,无法处理这个问题,我所做的是

  1. npm install -g npm (将我的 npm 更新到最新版本)
  2. npm install autoprefixer@latest
  3. npm install postcss@latest
  4. npm install daisyui

Like the person mentioned the postcss and autoprefixer are outdated to deal with this what i did was

  1. npm install -g npm ( to update my npm to latest)
  2. npm install autoprefixer@latest
  3. npm install postcss@latest
  4. npm install daisyui
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文