Use other package managers (e.g yarn or pnpm)? #2261
-
QuestionWe've started seeing some errors in the QLTY builds because it tries to install packages with We do, however, have the How to reproduce (optional)
Expected behavior (optional)The packages are installed and the build executes CLI Versionqlty 0.558.0 linux-x64 (b0a3def 2025-07-27) Information about Qlty configuration and environment (optional)We don't have anything set up |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @khaosdoctor -- Thank you for this report. Support for other JS package managers beyond NPM is something that we would consider for the future. One technique that we often recommend is using a separate package.json file specifically for your JS static analysis tools. The advantage of this is that Qlty will be faster (since it won't need to install app dependencies), and also it guarantees that a static analysis tool update will never cause an app bug (due to e.g. a shared dependency change). So you might try Yarn for your app and NPM just for Qlty. We'll provide an update here if / when we add support for other package managers. Best, -Bryan |
Beta Was this translation helpful? Give feedback.
Hi @khaosdoctor -- Thank you for this report. Support for other JS package managers beyond NPM is something that we would consider for the future.
One technique that we often recommend is using a separate package.json file specifically for your JS static analysis tools. The advantage of this is that Qlty will be faster (since it won't need to install app dependencies), and also it guarantees that a static analysis tool update will never cause an app bug (due to e.g. a shared dependency change). So you might try Yarn for your app and NPM just for Qlty.
We'll provide an update here if / when we add support for other package managers.
Best, -Bryan