From 40e9db3f6e9ed22469713f574579f505ec8e904f 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..37a7b39a 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 CI 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).