Skip to content

Use pacote for package downloading #158

@savetheclocktower

Description

@savetheclocktower

Have you checked for existing feature requests?

  • Completed

Summary

src/install.js has lots of code around the manual retrieval of packages from NPM. In the modern Node ecosystem, there's a dedicated package called pacote that can do this, and it would behoove us to use that instead.

What benefits does this feature provide?

pacote is widely used and is a first-party npm package. If anything were to change about how packages are downloaded in the future, I think we'd be much better served if we were on pacote instead of our own custom code.

Any alternatives?

The alternative is the status quo — meaning continued shelling out to our own fork of npm. This isn't a huge source of pain for us, but it would be good to get ourselves to a point where ppm doesn't rely on npm at all for package retrieval or installation or building — and then we'd be freed from having to maintain an npm fork altogether.

Other examples:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions