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

cloned packages missing npm-generated package metadata #18

Open
chazomaticus opened this issue Jan 20, 2017 · 0 comments
Open

cloned packages missing npm-generated package metadata #18

chazomaticus opened this issue Jan 20, 2017 · 0 comments

Comments

@chazomaticus
Copy link

Hi, I'd originally filed this as hayes/unpm#83, but @hayes informed me this is probably a better place for it.

I'm hazy on the exact details, but it sounds like the problem is that some part of npm will sometimes add metadata for releases of packages, metadata that's not in the package.json file, which clone-packages ignores. It seems that npm used to not care, figuring it out from the package itself either way, but modern npm (3 or 4) seems to rely on the server for this information. The issue for me is that packages cloned into my unpm instance are missing scripts.install even if they need building, where scripts.install is present on the public registry (even though it was never in any package.json), so depending on what registry I install the package from and which version of npm I'm using, npm install may or may not give a usable package.

Again, please see hayes/unpm#83 for the full context here, and @hayes' ideas for how to fix. I'm afraid I don't know enough details to be much more help with specifics, but I'm happy to try to answer any questions or run any experiments. Thanks!

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

1 participant