Outdated "Upgrading on Windows" - obsolete workarounds?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- node.js
調査の方向性
リンク先の npm ドキュメントページの「Upgrading on Windows」セクションから始め、記載内容を、報告されている Node.js 22、24、26 の動作と照らし合わせて確認してください。Windows でドキュメントに記載されているコマンドと回避策を検証し、その後、現在サポートされているバージョンを正確に反映するようにセクションを修正し、古くなった案内を削除してください。
索引モデルが issue の本文から書いたものです。
説明
Description
In a 64-bit Node.js installation on Windows 11 25H2,
C:\Program Files\nodejs\is added to the system PATH environment variableC:\Users\%USERNAME%\AppData\Roaming\npmis added to the user PATH environment variable
and the system PATH takes precedence over the user PATH. This is correctly described.
The statement:
... it will always use the version of npm installed with node instead of the version of npm you installed using
npm -g install npm@<version>.
does not hold true for Node.js 26.4.0, nor for the lowest currently supported Node.js 22.33.1.
The workarounds that are described, appear to be unnecessary and obsolete.
Steps to reproduce
- Install https://nodejs.org/dist/v26.4.0/node-v26.4.0-x64.msi with bundled npm 11.17.0 on Windows 11 25H2
- In a cmd command terminal window execute
echo %PATH%and confirm the priority is:C:\Program Files\nodejs\C:\Users\%USERNAME%\AppData\Roaming\npm
- Execute
npm --versionand confirm that the version shown is11.17.0 - Execute
npm install [email protected] -g - Execute
npm --versionand confirm that the version shown is11.18.0 - Repeat
npm --versionin the following and confirm they also show npm11.18.0- Windows PowerShell 5.1
- PowerShell 7.6.3
- Git Bash
Repeat for Node.js 22.33.1 with bundled npm 10.9.8. Update to [email protected].
Suggested solution
Review and revise the documentation section for accuracy regarding currently supported versions of Node.js 22, 24 & 26.
URL
https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows
- 主要言語
- MDX
- スター
- 728
- フォーク
- 4.3k
- 平均マージ
- 22時間 39分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
npm/documentation のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
npm/documentation#1997 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
npm/documentation#1960 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Mobile header icons are hard to see再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
npm/documentation#1948 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
npm/documentation#1929 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
npm/documentation#1926 · コメント 3 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
npm/documentation の issue をすべて見る
似ている issue
-
🎙️ task - drop the raw `./node_modules/.bin/rhachet roles boot` line from bhuild's feedback templateオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ehmpathy/rhachet-roles-bhuild#639 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triaging
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
SeleniumHQ/seleniumhq.github.io#2952 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
status/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
btclib-org/btclib-node#2198 ·
メンテナーはふだん 1 日以内に返信
-
Remove the em dashes from the skill smart-account reference対応中かも @Vamsi-2581 が今日担当しました。 オープンagent-ready area: docs documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Soneso/stellar-agent-wallet#541 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信