I’m currently dealing with a project where I’m trying to install Angular2, but upon running the installation command, I encounter several warnings about unmet peer dependencies.
npm install --save angular2
[email protected] /Users/user/Projects/myproject
├── [email protected]
├── UNMET PEER DEPENDENCY es6-promise@^3.0.2
├── UNMET PEER DEPENDENCY es6-shim@^0.33.3
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── UNMET PEER DEPENDENCY [email protected]
npm WARN [email protected] requires a peer of es6-promise@^3.0.2 but none was installed.
npm WARN [email protected] requires a peer of es6-shim@^0.33.3 but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
I want to know if there’s an option or flag that npm provides which could automatically install these peer dependencies along with the main package. Manually typing in each peer dependency and ensuring I have the right versions is tedious and I’d prefer a more efficient process.
For instance, I often find myself running this command:
npm install --save [email protected] es6-promise@^3.0.2 es6-shim@^0.33.3 [email protected] [email protected] [email protected]
Is there a simpler way to handle this?