-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
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
ArtifactoryNpm@2 task fails after npm version 9.x changed authentication method #385
Comments
Ran into this as well. Worked around it temporarily by making sure Node version |
thank you @bkaidbb - we also temporally install npm@8 for now before running the task and tests. |
@UIQA @bkaidbb , We'd appreciate your feedback on that. |
Switching from |
Thank you, @yahavi |
Hello! Do you have any update on this issue? Thanks |
Hi @UIQA , |
Hi @sverdlov93 , Thank you |
@UIQA |
Any plan to fix it in |
According to the description of the Azure Pipelines Extension (called JFrog Artifactory) behind The legacy/deprecated JFrog Artifactory plugin ( The changes including the mentioned error are described in official JFrog help on login behavior changes regarding npm v9. The suggested fix (just run |
Describe the bug
Hello,
We successfully used ArtifactoryNpm@2 task in Azure DevOps pipeline for a long time until npm@9 arrived.
Currently, our tests fail because the ERR_INVALID_AUTH error.
Could you please fix this error?
Thank you!
Current behavior
npm ERR! code ERR_INVALID_AUTH
npm ERR! Invalid auth configuration found:
_auth
must be renamed to//qusw.jfrog.io/artifactory/api/npm/:_auth
in project confignpm ERR! Please run
npm config fix
to repair your configuration.`Reproduction steps
Please, run the following pipeline Azure Devops:
name: ArtifactoryNpmTests
trigger: none
pool:
vmImage: 'ubuntu-latest'
steps:
displayName: 'Artifactory npm install'
inputs:
artifactoryService: 'Jfrog service connection here'
sourceRepo: 'npm-virtual'
Expected behavior
ArtifactoryNpm@2 will run successfully.
Azure DevOps extension name and version
JFrog Artifactory version 1.13.6
JFrog CLI version
1.53.2
Operating system type and version
ubuntu-latest
JFrog Artifactory version (if relevant)
1.13.6
JFrog Xray version (if relevant)
No response
JFrog Distribution version (if relevant)
No response
The text was updated successfully, but these errors were encountered: