We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to read _auth from ~/.npmrc
When running openapi-fetch I get a Failed to read _auth from ~/.npmrc error.
openapi-fetch
My .npmrc file has the new _auth syntax, which is how it is configured on NodeJS v20:
.npmrc
_auth
//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, it works
_auth=<auth_token>
2.16.3 on my package.json
2.16.3
package.json
"@openapitools/openapi-generator-cli": "^2.16.3",
this is a redacted screenshot of my .npmrc file
this is a redacted screenshot of the openapi-fetch execution through an npm script
npm
The text was updated successfully, but these errors were encountered:
maybe this belongs in https://github.com/OpenAPITools/openapi-generator-cli/issues?
https://github.com/OpenAPITools/openapi-generator-cli/issues
Sorry, something went wrong.
No branches or pull requests
Bug Report Checklist
Description
When running
openapi-fetch
I get aFailed to read _auth from ~/.npmrc
error.My
.npmrc
file has the new_auth
syntax, which is how it is configured on NodeJS v20: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, it worksopenapi-generator version
2.16.3
on mypackage.json
"@openapitools/openapi-generator-cli": "^2.16.3",
Steps to reproduce
this is a redacted screenshot of my
.npmrc
filethis is a redacted screenshot of the
openapi-fetch
execution through annpm
scriptThe text was updated successfully, but these errors were encountered: