运行时yarn check,我看到:
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
Run Code Online (Sandbox Code Playgroud)
GitHub评论说,可以安全地忽略该消息。
有没有办法防止它首先发生?
不确定,yarn check但为了安装/更新:yarn --silent或者更好yarn --silent --ignore-optional
yarn --silent安装可选的依赖项,但没有输出。
注意:如果使用--ignore-optional标志运行,您可能会依赖某些可选依赖项而没有意识到。因此,我建议删除您的node_modules文件夹和yarn.lock文件,然后yarn --ignore-optional在测试您的项目之前运行。如果事实证明存在您需要的可选 deps,则将它们添加为 [dev] deps [相应]。尽管如果它是公正的fsevents并且从未安装过,则不用担心。
| 归档时间: |
|
| 查看次数: |
1711 次 |
| 最近记录: |