跳到主要内容

npmrc

对于 pnpm 项目,通常会有一个 .npmrc 文件,用于配置npm的一些参数,比如使用pnpm的严格模式等,其内容如下。

.npmrc
shamefully-hoist=true
strict-peer-dependencies=false
shell-emulator=true

此外,配置仓库镜像源,node版本等等。更多配置可看 .npmrc