Skip to content

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

@akhter-ali-idexx

Description

@akhter-ali-idexx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions