24 lines
560 B
Plaintext
24 lines
560 B
Plaintext
# 启用严格模式,确保依赖版本一致
|
|
strict-peer-dependencies=false
|
|
|
|
# 配置依赖安装目录(pnpm 特有,节省磁盘空间)
|
|
store-dir=~/.pnpm-store
|
|
|
|
# 兼容 uniapp 对依赖的查找逻辑
|
|
node-linker=hoisted
|
|
|
|
# 忽略废弃依赖警告
|
|
ignore-deprecations=all
|
|
|
|
# 忽略对等依赖警告
|
|
strict-peer-dependencies=false
|
|
|
|
# 淘宝镜像(加速下载)
|
|
registry=https://registry.npmmirror.com
|
|
|
|
# 把缓存放到项目目录里,解决 Jenkins 权限问题
|
|
cache=.npm
|
|
prefix=.npm-global
|
|
|
|
# 安全关闭一些权限问题
|
|
unsafe-perm=true |