Programming Yarn Npm

package.json # resolutions field # yarn specific Allows you to force the use of a particular version for a nested dependency. e.g.: "devDependencies": { "@angular/cli": "1.0.3", "typescript": "2.3.2" } yarn.lock will contain: "typescript@>=2.0.0 <2.3.0": version "2.2.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.2.2.tgz#606022508479b55ffa368b58fee963a03dfd7b0c" typescript@2.3.2: version "2.3.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984" and within node_modules you’d see: typescript@2.3.2 in node_modules/typescript typescript@2.2.2 in node_modules/@angular/cli/node_modules. Because TS@2.2.2 is nested within @angular/cli it is impossilbe to force the use of TS@2. ...