Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't support numeric comparison specifiers for npm: dependencies in deno.json #27546

Open
lishaduck opened this issue Jan 3, 2025 · 1 comment

Comments

@lishaduck
Copy link

Version: Deno 2.1.4

@types/node@>=22.7.4 is only compatible with TS 5.7 (~rel: #27046, #26950), so I've pinned it to be be less than that. I'm moving from a package.json (for Vitest compat, but trying npm:@deno/vite-plugin) to deno.json, but deno install fails.

Error:

error: Invalid package specifier 'npm:/@types/node@%3C22.7.4/'
    0: Invalid specifier version requirement
    1: Unexpected character.
         %3C22.7.4
         ~
@lishaduck
Copy link
Author

Just checked, and <, >=, and <= also doesn't work.

@lishaduck lishaduck changed the title Doesn't support < (less than) specifier for npm deps in deno.json Doesn't support numeric comparison specifiers for npm: dependencies in deno.json Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant