pnpm Config and Store/Create project .npmrc

Write common pnpm/npm-compatible configuration into .npmrc.

Section: Configuration Basics

Create project .npmrc

bash
bash
printf 'auto-install-peers=true\nstrict-peer-dependencies=false\n' >> .npmrc
Explanation

Write common pnpm/npm-compatible configuration into .npmrc.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Configuration Basics
Get config value
Read a pnpm configuration value.
OpenIn sheetbashsame section
Set config value
Set a pnpm configuration value.
OpenIn sheetbashsame section
Delete config value
Remove a config key.
OpenIn sheetbashsame section
List config
Print active configuration values.
OpenIn sheetbashsame section
Use hoisted node_modules linker
Switch to a hoisted node_modules layout if needed for compatibility.
OpenIn sheetbash2 tag match
Use isolated linker
Use pnpm's default strict linking model.
OpenIn sheetbash2 tag match