npm / npm/cli

[BUG] `npm install` missing exactly one file in exactly one dependency package

オープン
#9,653 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Bug Priority 2
主要言語
JavaScript
スター
10.1k
フォーク
4.7k
平均マージ
2日 2時間
マージ済み PR(30日)
19

説明

Is there an existing issue for this?
  • I have searched the existing issues
This issue exists in the latest npm version
  • I am using the latest npm
This is not just a request to bump a dependency for a CVE
  • This is not solely a request to bump a dependency for a CVE
Current Behavior
  • If I run npm install at the root of https://github.com/NousResearch/hermes-agent, the file dist/tabler-icons-react.d.ts must be present in node_modules/@tabler/icons-react, but is missing.
  • The next step to build the desktop app, namely npm run build -w apps/desktop fails at tsc -b with errors due to missing type declaration.
  • Build succeeds if I manually insert the file from the tarball I got from npm registry.
Expected Behavior

npm install and then npm run build -w apps/desktop succeeds.

Steps To Reproduce
  1. On windows, git clone https://github.com/NousResearch/hermes-agent
  2. npm install at the project root
  3. Observe the contents in node_modules/@tabler/icons-react to see if the file dist/tabler-icons-react.d.ts is present
  4. npm run build -w apps/desktop at the project root to see "type declarations missing" errors from tsc -b (more complete description and what I tried to fix it can be found in https://github.com/NousResearch/hermes-agent/issues/38146#issuecomment-4778032787)
Environment
  • npm: 11.17.0
  • Node.js: 24.15.0
  • OS Name: Windows 11
  • System Model Name: Dell OptiPlex 7000 (desktop)
  • npm config:
cafile = "corporate certificate (redacted)"
registry = "corporate npm proxy (redacted)"
; no other configs set

The corporate proxy is not the cause, since the tarball downloaded from the proxy does contain the offending file, and it is present when I npm install @tabler/icons-react from a fresh project.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Windows で hermes-agent リポジトリからのインストールを再現し、その後 node_modules/@tabler/icons-react に dist/tabler-icons-react.d.ts があるか確認します。npm run build -w apps/desktop を実行し、インストールされたパッケージを npm tarball と比較します。npm install に宣言ファイルが含まれ、desktop のビルドが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, nodejs, typescript
領域
cli, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
65/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。