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

create subfolder at top level of tarball from Github #120

Closed
wants to merge 1 commit into from

Conversation

tshaynik
Copy link
Contributor

create a package dir at top level of tarball from Github
to fix bug where npm install cannot resolve dependencies.
This fix resolves ENOTCACHED errors in the preinstall phase
caused by improperly structured tarballs.

Tarballs that npm can use, package contents should reside
in a subfolder inside the tarball (usually it is called package/).
npm strips one directory layer when installing the package
(an equivalent of tar x --strip-components=1 is run).

See https://docs.npmjs.com/cli/v7/commands/npm-install

This relates to issue #45.

create a package dir at top level of tarball from Github

Tarballs that npm can use, package contents should reside
in a subfolder inside the tarball (usually it is called package/).
npm strips one directory layer when installing the package
(an equivalent of tar x --strip-components=1 is run).

See https://docs.npmjs.com/cli/v7/commands/npm-install
@andir
Copy link
Collaborator

andir commented Nov 15, 2021

Interesting issue. Do you have a reproducer for this issue?

@infinisil
Copy link
Contributor

@tshaynik Ping, a reproducer would be great, we could turn this into a test case

@tshaynik tshaynik closed this Nov 15, 2022
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

Successfully merging this pull request may close these issues.

3 participants