簡體   English   中英

嘗試在 linux 上安裝 tailwindcss 時出現 fsevents 依賴問題

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM