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 "" typescript@2.3.2: version "2.3.2" resolved "" 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. ...