Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#881 1 comentario 0 reacciones 1 asignado Ver en GitHub

@kay-schecker ya está trabajando en esto.

Desde el 25/2/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
210
Merge medio
9 h 35 min
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenAPITools/openapi-generator-cli

Todos los issues de OpenAPITools/openapi-generator-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.