From 274f0d0cf64fb03765fb5f70009fe5f00b8ecf9c Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Tue, 7 Sep 2021 16:57:08 -0700 Subject: [PATCH] Add concurrency explanation -> FAQ (#343) * Add concurrency explanation -> FAQ * Update typescript-installs FAQ --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d449753..9a3aa04 100644 --- a/README.md +++ b/README.md @@ -170,4 +170,8 @@ I'm getting an error about a missing typescript install. ``` Error: Cannot find module '/node_modules/dtslint/typescript-installs/3.1/node_modules/typescript` ``` -Package lock files such as `yarn.lock` and `package-lock.json` may cause this issue because of our github dependency on `"definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production"`, which contains the list of typescript versions to install. To fix this, try deleting your lock file and re-installing. +Your dependencies may be out of date. +[@definitelytyped/typescript-versions](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/typescript-versions) is the package that contains the list of TypeScript versions to install. + +Alternatively this error can be caused by concurrent dtslint invocations trampling each other's TypeScript installations, especially in the context of continuous integration, if dtslint is installed from scratch in each run. +If for example you use [Lerna](https://github.com/lerna/lerna/tree/main/commands/run#readme), try running dtslint with [`lerna --concurrency 1 run ...`](https://github.com/lerna/lerna/tree/main/core/global-options#--concurrency).