[BUG] getting a `Failed to read _auth from ~/.npmrc` with Node v20
@kay-schecker đang làm issue này rồi.
Từ ngày 25/2/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
🐛 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
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 210
- Merge trung bình
- 7 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedCó thể làm lại được @kay-schecker đã nhận 130 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1213 · 1 người được giao ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version managerCó thể làm lại được @kay-schecker đã nhận 184 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1190 · 1 người được giao ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaCó thể làm lại được @kay-schecker đã nhận 235 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1138 · 1 bình luận · 1 người được giao ·
-
[BUG] Environment variable not found (missing .env loading)Có thể làm lại được @kay-schecker đã nhận 273 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1094 · 1 bình luận · 1 người được giao ·
Tất cả issue của OpenAPITools/openapi-generator-cli
Issue tương tự
-
bug confirmed perf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
videojs/video.js#9400 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue hacktoberfest
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
HelpCode-ai/anythingmcp#996 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: CanalPlusActionEurope.nlĐang mởcheck:passed streams:add
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
beta technical-medium ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
walletbeat/walletbeat#1625 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Good First Issue]: Add unit tests for NetworkVersionInfoCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởGood First Issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
hiero-ledger/hiero-sdk-js#4489 ·
Maintainer thường phản hồi trong vòng 1 ngày