Skip to content

now that peer deps are auto installed in npm 7 doesn't it make sense to have a --save-peer flag? #240

Answered by ruyadorno
scamden asked this question in RRFC
Discussion options

You must be logged in to vote

Yes! 👍 It's already there in npm7, e.g:

$ npm i --save-peer simple-output
$ cat package.json
{
  ...
  "peerDependencies": {
    "simple-output": "^2.1.1"
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ruyadorno
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
RRFC
Labels
None yet
2 participants