0

Yarn 像这样创建信息输出:


info esbuild-android-arm64@0.13.4: The platform "darwin" is incompatible with this module.
info "esbuild-android-arm64@0.13.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.4: The CPU architecture "x64" is incompatible with this module.
info esbuild-darwin-arm64@0.13.4: The CPU architecture "x64" is incompatible with this module.
[...]

我希望纱线通过.npmrc添加文件来抑制这样的输出loglevel=silent

但是,在 VSCode 中,我在Problems选项卡中收到此消息:

.npmrc
   Expected a JSON object, array or literal.

在此处输入图像描述

但根据文档键/值对是 npmrc 配置的有效方式: https ://docs.npmjs.com/cli/v7/configuring-npm/npmrc

此外,告诉纱线保持沉默也无济于事。

我在这里做错了什么?

4

0 回答 0