From 98a8814b5e6c0a109ab7dd4cd0601c52216f9d76 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Mon, 30 Aug 2021 09:56:53 -0700 Subject: [PATCH] Add concurrency explanation -> FAQ --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 691933ca..db8f7c9a 100644 --- a/README.md +++ b/README.md @@ -169,3 +169,5 @@ 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. + +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).