Skip to content

Bug: Deno install error: @eslint/css is missing a prefix #66

Closed
@MikeMcC399

Description

@MikeMcC399

Environment

ESLint version: N/A
@eslint/css version: 0.4.0
Node version: v22.14.0 LTS
Deno version: 2.2.1
Operating System: Ubuntu 24.04.2 LTS

Which language are you using?

N/A

What did you do?

npm install -g deno
cd $(mktemp -d)
deno add @eslint/css

What did you expect to happen?

The README > Installation instructions should lead to a successful installation under Deno.

What actually happened?

Error message:

deno add @eslint/css
Created deno.json configuration file.
error: @eslint/css is missing a prefix. Did you mean `deno add jsr:@eslint/css`?

Link to Minimal Reproducible Example

See above

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

Probably the README > Installation is incorrect and the command should be:

deno add npm:@eslint/css

however this is also not successful. It results in:

$ deno add npm:@eslint/css
Add npm:@eslint/[email protected]
error: Error in @eslint/[email protected] parsing version requirement for dependency "@types/css-tree": "file:./typings/css-tree"

Caused by:
    0: Invalid version requirement
    1: Unexpected character.
         file:./typings/css-tree
         ~

Installing an earlier release is successful:

deno add npm:@eslint/[email protected]

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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