Does npm have the option to install dependency as peer-dependency like yarn option --yarn
, instead of adding it manually for example:
"peerDependencies": {
"@angular/core": "^7.0.0"
}
Update with more clarification of the question, thanks to @Broncha
The question is how to add a peer dependency to a project. That is
npm i dep
adds the dependency to the "dependencies" in package.json,npm i -D dep
adds the dependency to the "devDependencies" in package.json.
How do I install a dependency that adds it to the "peerDependencies" in package.json?