pnpm: auto-install-peers=true is not working

pnpm version: 7.1.6

Code to reproduce the issue:

pnpm config set auto-install-peers=true pnpm i

image image

when I used npm, It works fine, I did’t change anything, it just break, it’s disgusting.

Expected behavior:

green

Actual behavior:

red

Additional information:

  • node -v prints:v16.14.0
  • Windows, macOS, or Linux?: mac m1 pro

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Still experiencing the same issue

I’m trying to use pnpm to replace npm in my several projects directly. unfortunately, none of them succeeded. I got some peer dependencies error and some errors like: ‘Cannot find module ‘xxxxxxx’ or its corresponding type declarations.’ after I execute the pnpm install command. AND: image