Categories
JavaScript Answers

How to download source from npm without installing it with JavaScript?

Spread the love

To download source from npm without installing it with JavaScript, we run npm view [package name] dist.tarball.

For instance, we run

wget $(npm view lodash dist.tarball)

to download the source for the lodash package without installing it with npm view and wget.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *