【问题标题】:Problem with fsevents dependency while trying to install tailwindcss on linux尝试在 linux 上安装 tailwindcss 时出现 fsevents 依赖问题
【发布时间】:2021-07-02 09:04:57
【问题描述】:

我正在尝试使用以下命令在我的 Vue Js 项目中安装 tailwindcss:

npm install -D tailwindcss@latest

但我收到此错误:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  undefined
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

有一个相关主题here 建议的解决方案是将 fsevents 设置为 devDependencies 但在此特定情况下是不可能的案例。

【问题讨论】:

    标签: linux tailwind-css fsevents


    【解决方案1】:

    npm install -D -f tailwindcss@latest这强制安装

    【讨论】:

      【解决方案2】:

      在我的 reactjs 应用程序中安装 tailwind 时遇到了同样的问题。我可以通过npm install -D -f tailwindcss@latest 解决错误。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-09-15
        • 2015-09-20
        • 2020-04-22
        • 1970-01-01
        • 2017-06-03
        • 1970-01-01
        • 2023-01-19
        • 2021-04-10
        相关资源
        最近更新 更多