OrgChart
OrgChart copied to clipboard
cannot install orgchart throught
cmd showed the following
Same for me.
jspdf could be migrated to the version 2 ?
any update on this issue ? i too have the same issue.
Workaround:
Add in package-lock.json:
{
...
"dependencies": {
"orgchart": {
"version": "2.1.10",
"resolved": "https://registry.npmjs.org/orgchart/-/orgchart-2.1.10.tgz",
"integrity": "sha512-jgiajUSq07XScAgHPwQeGJKPdDsHfr/ENbKcsEUyCjNOPDmw6XeO7fJ6GMaJ93jxs9P0sJktMUJr+e3gjorZmQ==",
"requires": {
"html2canvas": "^1.0.0-rc.5",
"jquery": "^3.4.1",
"jquery-mockjax": "^2.5.0",
"jspdf": "^1.5.3"
},
"dependencies": {
"jspdf": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/jspdf/-/jspdf-2.1.1.tgz",
"integrity": "sha512-aEZmTr8SgR7Dy2zjFLu6pbg93urA7nZdbS3MIAXs8PSXn1ee7LSpm0JVMYZ+0qS6ZIUI5NriFSTdpVI4QArAXQ==",
"requires": {
"atob": "^2.1.2",
"btoa": "^1.2.1",
"canvg": "^3.0.6",
"core-js": "^3.6.0",
"dompurify": "^2.0.12",
"html2canvas": "^1.0.0-rc.5"
}
}
}
},
...
}
}
and package.json :
{
"scripts": {
...
"preinstall": "npx npm-force-resolutions"
},
"dependencies": {
...
"orgchart": "2.1.10"
},
...
"resolutions": {
"jspdf": "2.1.1"
}
...
Maybe fixed with 8c5427e74e6dde7b27b75a10fb803b62d6db067a ? (not tested)