Package require os(darwin) not compatible with your platform(win32)

    技术2022-07-11  96

    使用npm install 安装项目依赖时出现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是可选的依赖,只能应用于maxOS系统,不适合Windows或者Linux,也就是忽略即可。

    非要解决的话,可尝试运行以下命令

    ①:cnpm rebuild node-sass

    ②:cnpm install

    cnpm可以写成npm,cnpm只是使用了淘宝镜像,国内网安装会快一些。

    原文链接:https://blog.csdn.net/Fabulous1111/article/details/79388841

    Processed: 0.011, SQL: 9