jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

jfrog-cli 2.74.0 (NPM integration): "Error: 8 [Error] failed to parse '{..}' from npm ls output"

Open akhter-ali-idexx opened this issue 1 year ago • 1 comments

Describe the bug

on github actions, running ubuntu:latest and container node:20, we're executing jf npm ci which successfully runs. However, it runs an npm ls --json afterwards and fails to parse the JSON.

If possible, I'd like to omit npm ls --json entirely since npm ci is successful

Current behavior

jf npm ci executes and successfully downloads all packages npm ls --json runs and fails to parse the JSON on github actions

Reproduction steps

In github actions, using ubuntu:latest and container node:20, with a large project which include multiple package.json files, execute jf npm ci

Expected behavior

Only jf npm ci to execute and not npm ls --json

JFrog CLI version

2.74.0

Operating system type and version

Github Actions ubuntu:latest (22.04)

JFrog Artifactory version

cloud

JFrog Xray version

No response

akhter-ali-idexx avatar Mar 06 '25 14:03 akhter-ali-idexx