Skip to content

Using a NPM package that has / in name? #26686

Discussion options

You must be logged in to vote

The error message is correct. The package paddlejs-models doesn't exist on npm. I think you meant to use @paddlejs-models/ocr instead which is a valid package name. The format on npm for these is @<scope>/<name>. You cannot leave out the @ character though, same as in Node. Scoped package names must always start with the @ character.

- import * as ocr from 'npm:paddlejs-models/ocr';
+ import * as ocr from 'npm:@paddlejs-models/ocr';

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MirilRetry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants