IllegalArgumentException: Scope starts with '.' or '_': _ueberdosis

Hello,
I’m using Nexus OSS 3.37.3-02 as an NPM proxy but when I try to use

@_ueberdosis/prosemirror-tables (https://www.npmjs.com/package/@_ueberdosis/prosemirror-tables)

e.g. npm i @_ueberdosis/prosemirror-tables

then it fails and Nexus log contains:
Failure servicing: GET /nexus/repository/npm-all/@ueberdosis%2fprosemirror-tables
java.lang.IllegalArgumentException: Scope starts with ‘.’ or '
’: _ueberdosis
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:219)
at com.sonatype.nexus.repository.npm.internal.NpmPackageId.(NpmPackageId.java:62)
at com.sonatype.nexus.repository.npm.internal.NpmPaths.packageId(NpmPaths.java:270)

Is this an expected behaviour or am I doing something wrong?

According to the npm specification this isn’t a valid scope name, its surprising that npm didn’t block publishing.

Hi Matthew,

FYI, our developpers raised the same issue.
Do you know if a workaround exist ?

Thx and regards
Aldric

This is no workaround for this.

I have the same issue with https://www.npmjs.com/package/@_sh/strapi-plugin-ckeditor

We opened a ticket with the maintainer of the project… sonatype nexus blocks package due to underscore in package name · Issue #109 · nshenderov/strapi-plugin-ckeditor · GitHub

Does anyone have any other creative solution perhaps?

1 Like