[英]Problem with fsevents dependency while trying to install tailwindcss on linux
我正在尝试使用以下命令在我的 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
这里有一个相关主题,建议的解决方案是将fsevents设置为devDependencies ,但在这种特殊情况下是不可能的。
npm install -D -f tailwindcss@latest 这个强制安装
在我的 reactjs 应用程序中安装 tailwind 时,我遇到了同样的问题。 我可以通过npm install -D -f tailwindcss@latest
解决错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.