# Проблемы с линтером темы на этапе «Установка JS-зависимостей»

**URL:** https://meta.discourse.org/t/trouble-with-theme-lint-at-install-js-dependencies-step/368423
**Category:** Development
**Created:** [01.Июнь.2025 16:08:06 UTC](https://meta.discourse.org/t/trouble-with-theme-lint-at-install-js-dependencies-step/368423 "2025-06-01T16:08:06Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [01.Июнь.2025 16:08:06 UTC](https://meta.discourse.org/t/trouble-with-theme-lint-at-install-js-dependencies-step/368423/1 "2025-06-01T16:08:06Z")

</div>

Я скопировал `[package.json](https://github.com/discourse/discourse-theme-skeleton/blob/main/package.json)` из последней версии [discourse-theme-skeleton/package.json at main · discourse/discourse-theme-skeleton · GitHub](https://github.com/discourse/discourse-theme-skeleton/blob/main/package.json)

Файл небольшой:

```plaintext
{
private: true,
devDependencies: {
@discourse/lint-configs: "2.21.0",
ember-template-lint: "7.7.0",
eslint: "9.27.0",
prettier: "3.5.3",
stylelint: "16.19.1"
},
engines: {
node: ">= 22",
npm: "please-use-pnpm",
yarn: "please-use-pnpm",
pnpm: "9.x"
},
packageManager: "pnpm@9.15.5"
}

```

Линтинг работает при моих попытках запустить “Right Stuff” локально, но в GitHub я получаю следующее:

```plaintext
Run yarn install --frozen-lockfile
error This project's package.json defines "packageManager": "yarn@pnpm@9.15.5". However the current global version of Yarn is 1.22.22.

Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.

```

И это происходит на этапе “install JS Dependencies”, так что, казалось бы, проблема не в моих действиях?

Вот мой код: [GitHub - pfaffman/discourse-custom-homepage-for-groups: Discourse theme component to change home page based on user's primary group · GitHub](https://github.com/pfaffman/discourse-custom-homepage-for-groups)

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-theme-lint-at-install-js-dependencies-step/368423)._
