Package require os(darwin) not compatible with your platform(win32)
使用npm install 安裝項目依賴時出現(xiàn)Package require os(darwin) not compatible with your platform(win32)的問題
stackoverfllow.com上的回答為:
This is an ignored error. fsevents is an optional dependency, is only used on macOS and not on Windows or Linux. You can simply ignore it! It always happens when using webpack (and many other packages) on Windows, it's perfectly normal and expected.
大致意思:這是一個可以忽略的錯誤,fsevents是可選的依賴,只能應(yīng)用于maxOS系統(tǒng),不適合Windows或者Linux,也就是忽略即可。
非要解決的話,可嘗試運(yùn)行以下命令
①:cnpm rebuild node-sass
②:cnpm install
cnpm可以寫成npm,cnpm只是使用了淘寶鏡像,國內(nèi)網(wǎng)安裝會快一些。
?
內(nèi)推信息
有想換工作的小伙伴嗎?
對網(wǎng)易感興趣的話歡迎添加本人微信:urus35
各種方向的崗位都有噢~(坐標(biāo):廣州北京上海杭州)
總結(jié)
以上是生活随笔為你收集整理的Package require os(darwin) not compatible with your platform(win32)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 天眼查如何登录账号
- 下一篇: 贴贴怎么霸占他的屏幕(霸占TA的屏幕)