简体   繁体   English

尝试在 linux 上安装 tailwindcss 时出现 fsevents 依赖问题

[英]Problem with fsevents dependency while trying to install tailwindcss on linux

I'm trying to install tailwindcss in my Vue Js project using the following command:我正在尝试使用以下命令在我的 Vue Js 项目中安装 tailwindcss:

 npm install -D tailwindcss@latest

But I get this error:但我得到这个错误:

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

There is a related topic here where the proposed solution is to set fsevents as devDependencies but it is not possible in this particular case.这里有一个相关主题,建议的解决方案是将fsevents设置为devDependencies ,但在这种特殊情况下是不可能的。

npm install -D -f tailwindcss@latest this forced the installation npm install -D -f tailwindcss@latest 这个强制安装

I had the same problem while installing tailwind in my reactjs application.在我的 reactjs 应用程序中安装 tailwind 时,我遇到了同样的问题。 I could resolve the error by npm install -D -f tailwindcss@latest .我可以通过npm install -D -f tailwindcss@latest解决错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM