13 lines
529 B
Plaintext
13 lines
529 B
Plaintext
# 设置npm包的下载源为国内镜像,加速包下载
|
||
registry=https://registry.npmmirror.com/
|
||
# 将依赖包提升到node_modules根目录,减少嵌套层级
|
||
shamefully-hoist=true
|
||
# 关闭严格的对等依赖检查,避免因对等依赖版本不匹配而安装失败
|
||
strict-peer-dependencies=false
|
||
# 自动安装对等依赖,无需手动安装
|
||
auto-install-peers=true
|
||
# 对等依赖去重,减少重复安装
|
||
dedupe-peer-dependents=true
|
||
# 使用提升模式链接依赖,与npm兼容性更好
|
||
node-linker=hoisted
|