jfrog / jfrog-azure-devops-extension

Apache License 2.0
47 stars 61 forks source link

Should updating npm be required when using windows agents #351

Open NinoCapo opened 2 years ago

NinoCapo commented 2 years ago

We recently ran into a small issue when using the ArtifactoryNpm task. We get and error message stating that npm client version 5.4.0 or higher is required. We can see that windows agents do have npm 8.11 already installed. As a workaround I've been installing the latest version of npm before running the ArtifactoryNpm task, but should that be necessary? I've tried some of the same basic tasks on the ubuntu machines and it doesn't seem to be an issue. Any guidance would be greatly appreciated.

NinoCapo commented 2 years ago

I guess the better question is how does the CLI validate the correct version of npm is installed in the agent? I have a ticket with Microsoft and its easy for me to validate that npm v8.11 is installed by simply running "npm version" in the command line.