Skip to content

[feature idea] cli: install package without any dependencies #262

Answered by ruyadorno
redbrain asked this question in RRFC
Discussion options

You must be logged in to vote

hi @redbrain I do agree that's an useful workflow and while it's not directly in the npm cli today, it's possible to benefit from that functionality today using pacote (part of the npm package ecosystem).

Quick example, extract the contents of the latest published version of react to a <path> in your file system:

$ npx pacote extract react@latest ./react

You can also learn more about the pacote cli usage running: npx pacote --help

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@redbrain
Comment options

@redbrain
Comment options

@ruyadorno
Comment options

Answer selected by ruyadorno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
RRFC
Labels
None yet
2 participants