yarn fails to install angular application in offline mode
#5123 opened on Dec 25, 2017
Description
Issue:
$ yarn install --offline yarn install v1.3.2 [1/4] 🔍 Resolving packages... error Couldn't find any versions for "tslib" that matches "^1.7.1" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
angular is depending on tslib ^1.7.1 https://github.com/angular/angular/blob/master/package.json and there is no 1.7.2 version available; the next available version is 1.8.0
I suspect yarn is not able to make out next minor version and is just looking out for version greater that 1.7.1
in online mode, it is getting installed properly. with a yarn.lock file which mentions dependency as 1.8.1; it gets installed well in offline mode.
Steps to reproduce:
- ng new proj1 --skip-install
- cd proj1; yarn install --offline
Expected behaviour: yarn should install the node_modules in offline mode.