phocks_test
phocks_test
DDeno
Created by phocks_test on 11/28/2024 in #help
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",
"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
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?
2 replies