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

Problem installing Design System package from npm #307

Closed
ekraffmiller opened this issue Feb 12, 2024 · 2 comments
Closed

Problem installing Design System package from npm #307

ekraffmiller opened this issue Feb 12, 2024 · 2 comments
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows

Comments

@ekraffmiller
Copy link
Contributor

I'm trying to install the design system package from https://www.npmjs.com/package/@iqss/dataverse-design-system to use in the demo repository. I have .npmrc defined as

legacy-peer-deps=true

# design-system registry
//registry.npmjs.org/:_authToken=<github token>
@iqss:registry=https://registry.npmjs.org/

# js-dataverse registry
//npm.pkg.github.com/:_authToken=<github token>
@iqss:registry=https://npm.pkg.github.com/

When I install with just the package name, it's not found, because it's looking for it in github

 npm install @iqss/dataverse-design-system
npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@iqss%2fdataverse-design-system - npm package "dataverse-design-system" does not exist under owner "iqss"
npm ERR! 404 
npm ERR! 404  '@iqss/dataverse-design-system@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

When I try to install using the full location of the package, I have a problem reading the tar file

npm install https://www.npmjs.com/package/@iqss/dataverse-design-system/v/1.0.0 
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID invalid base256 encoding
.
.
.
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_ENTRY_INVALID checksum failure
npm WARN tar TAR_BAD_ARCHIVE: Unrecognized archive format
npm ERR! code TAR_BAD_ARCHIVE
npm ERR! TAR_BAD_ARCHIVE: Unrecognized archive format

@ekraffmiller ekraffmiller added pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows labels Feb 12, 2024
@ekraffmiller
Copy link
Contributor Author

This is the demo repository where I'm trying to install: https://github.com/ekraffmiller/js-dataverse-vite-demo

@ekraffmiller
Copy link
Contributor Author

ekraffmiller commented Feb 15, 2024

This was caused by the .npmrc file needing to refer to two different registries. It will be fixed when the new js-dataverse is published in npm: IQSS/dataverse-client-javascript#113. Until then, we can work around by modifying the .npmrc, so closing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows
Projects
Status: No status
Development

No branches or pull requests

1 participant