Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] getting a `Failed to read _auth from ~/.npmrc` with Node v20

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

@kay-schecker がすでに取り組んでいます。

2025年2月25日 から。

評価

この issue はまだ評価されていません。

説明

bug

🐛 Bug Report:

Describe the bug

When running openapi-fetch or other openapi commands, I get the following error:

Failed to read _auth from ~/.npmrc

My .npmrc file has the newer _auth syntax, which is how it is configured on NodeJS v20:

//registry.npmjs.org/:_auth=<auth_token>

Feels like openapi-generator is not supporting the newer _auth syntax for NodeJS v20?

If I run it with NodeJS v16 and the old _auth=<auth_token> syntax, works as expected

Steps to Reproduce

this is a redacted screenshot of my .npmrc file

Image

this is a redacted screenshot of the openapi-fetch execution through an npm script

Image

Expected behavior

when running openapi commands like openapi-fetch via npm, it should be getting the _auth information on .npmrc config file, which is valid syntax for NodeJS v20

Screenshots

Submitted on Steps to reproduce

Operation System (please complete the following information):
  • OS: macOS
  • Version 15.3.1
Package System (please complete the following information):
  • node: v20.18.3
  • npm: v10.8.2
  • openapitools/openapi-generator-cli: ^2.16.3
主要言語
TypeScript
スター
2k
フォーク
209
平均マージ
9時間 35分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

OpenAPITools/openapi-generator-cli のほかの issue

OpenAPITools/openapi-generator-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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