Skip to content

Nexus conflit with @salesforcedx/design-system #762

Open
@viriatis

Description

@viriatis

As shared in this opened issue in the link below in nexus, I am having issues using a nexus repository with a proxy to get dependencies for npm.

Npm i @salesforce-ux/design-system - Exception com.fasterxml.jackson.core.exc.StreamConstraintsException

When I try to run npm install, I get this error 500 from nexus just on this specific dependency. When I look to nexus log I see this:

com.sonatype.nexus.repository.npm.internal.orient.OrientNpmGroupDataFacet - Unable to use Cooperation to merge @salesforce-ux/design-system for repository npm                       
com.fasterxml.jackson.core.exc.StreamConstraintsException: String length (5046272) exceeds the maximum length (5000000)  

From what I see, this is related to the same issue that was fixed before on this package Version 2.21.2 (spring-23) contains a blob as readme and breaks all builds #756. The readme is broken, "contains a binary blob instead of text".

If I used an external registry like https://registry.npmjs.org, I don't have any problem, but if I used my private nexus registry, I get the error you see above.

Why? I think nexus takes a look to the general json response that come from this url https://registry.npmjs.org/@salesforce-ux/design-system/. This json has all version from this package and has the blob readme string inside making nexus to retrieve an error.

If you do a curl, you can see it:
curl https://registry.npmjs.org/@salesforce-ux/design-system/

Output:
image

It would be nice if you could fix the rest endpoint and remove the broken readme info from it or it's versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions