Package require os(darwin) not compatible with your platform(win32)
使用npm install 安裝項(xiàng)目依賴時(shí)出現(xiàn)Package require os(darwin) not compatible with your platform(win32)的問(wèn)題
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.
大致意思:這是一個(gè)可以忽略的錯(cuò)誤,fsevents是可選的依賴,只能應(yīng)用于maxOS系統(tǒng),不適合Windows或者Linux,也就是忽略即可。
非要解決的話,可嘗試運(yùn)行以下命令
①:cnpm rebuild node-sass
②:cnpm install
cnpm可以寫(xiě)成npm,cnpm只是使用了淘寶鏡像,國(guó)內(nèi)網(wǎng)安裝會(huì)快一些。
?
內(nèi)推信息
有想換工作的小伙伴嗎?
對(duì)網(wǎng)易感興趣的話歡迎添加本人微信:urus35
各種方向的崗位都有噢~(坐標(biāo):廣州北京上海杭州)
總結(jié)
以上是生活随笔為你收集整理的Package require os(darwin) not compatible with your platform(win32)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 天眼查如何登录账号
- 下一篇: 关于浮点型加减乘除运算不精确的问题