[BUG] getting a `Failed to read _auth from ~/.npmrc` with Node v20
@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 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
this is a redacted screenshot of the openapi-fetch execution through an npm script
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedQuizá libre de nuevo @kay-schecker la tomó hace 129 días y no hay ningún pull request abierto. Abiertobug
OpenAPITools/openapi-generator-cli#1213 · 1 asignado ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version managerQuizá libre de nuevo @kay-schecker la tomó hace 184 días y no hay ningún pull request abierto. Abiertobug
OpenAPITools/openapi-generator-cli#1190 · 1 asignado ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaQuizá libre de nuevo @kay-schecker la tomó hace 234 días y no hay ningún pull request abierto. Abiertobug
OpenAPITools/openapi-generator-cli#1138 · 1 comentario · 1 asignado ·
-
[BUG] Environment variable not found (missing .env loading)Quizá libre de nuevo @kay-schecker la tomó hace 273 días y no hay ningún pull request abierto. Abiertobug
OpenAPITools/openapi-generator-cli#1094 · 1 comentario · 1 asignado ·
Todos los issues de OpenAPITools/openapi-generator-cli
Issues similares
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked filesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
maniator/verticopolis#880 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
siyuan-note/siyuan#20353 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
black-forest-labs/skills#17 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Albert-Weasker/niubigeo#168 ·
Los mantenedores suelen responder en 1 día