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

VersionNotFoundError: Version https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz for package xlsx could not be found #222

Open
fhg-isi opened this issue Jul 27, 2023 · 1 comment

Comments

@fhg-isi
Copy link

fhg-isi commented Jul 27, 2023

In my package.json I have following dependency:

"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz"

xlsx is published under Apache 2.0 license.

I included xlsx in packageAllowlist. Nevertheless I get

Error while checking xlsx@https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz:
  [email protected] -> xlsx@https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz

VersionNotFoundError: Version `https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz` for package `xlsx` could not be found
    at packageJson (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\node_modules\package-json\index.js:83:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async LicenseChecker.checkLicenses (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\checker.js:237:26)
    at async LicenseChecker.checkLicensesForDeps (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\checker.js:256:13)
    at async LicenseChecker.checkPackageJson (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\checker.js:290:9)
    at async LicenseChecker.checkPackageJsonContent (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\checker.js:300:13)
    at async LicenseChecker.checkLocalDirectory (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\checker.js:360:13)
    at async main (C:\python_env\App\WinPython\n\node_modules\js-green-licenses\build\src\cli.js:65:9)
@Mehonoshin
Copy link

I have a similar issue but for other packages. Any workaround?

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

2 participants