phocks_testP
Denoβ€’14mo agoβ€’
1 reply
phocks_test

GitHub imports from package.json in Deno

My workmate Ash has put a custom version of a package that is pointing directly to GitHub like this (canvg library):

"dependencies": {
    "@nanostores/persistent": "^0.9.0",
    "@sveu/browser": "^1.0.1",
    "@xmldom/xmldom": "^0.9.5",
    "canvg": "github:AshKyd/canvg",
    "container-query-polyfill": "^1.0.2",


This installs fine with npm install but it produces an error when I deno install

error: Failed to install 'canvg'
    at file:///Users/byrd.joshua/src/interactive-deeptime/package.json

Caused by:
    0: Invalid version requirement
    1: Unexpected character.
         github:AshKyd/canvg


I'm wondering if there's a way to get this working with Deno 2?
Was this page helpful?