I have run into a situation where a type definition in node_modules/@types
is installing its own @types dependencies, and these \"nested\" @types conflict with
Use peerDependencies to ensure you only have one version of a dependency.
i.e. If I am using typings for angular and angular-mocks, angular-mocks will have its own @types/angular
@types/angular // => 1.5.8
@types/angular-mocks // => 1.5.8
@types/angular-mocks/node_modules/@types/angular // => *
To prevent two version of @types/angular
from being installed, declare @types/angular
as a peerDependency in your package.json file.