top of page
Search
  • Writer's pictureYun'Harla

npm - full download in one archive


Turns out that the easiest way to download a FULL package of npm is not via its GitHub repository, but by downloading Node.JS' source archive release!






inefficient / incomplete npm downloads

Download methods:

  1. The release archive from npm's GitHub repo does not contain some of its dependencies. Thus, downloading that archive may be fast, but unusable!

  2. npm install -g npm@latest -> This is not ideal as it's slow! Since it needs to download the countless dependencies one at a time. Sometimes, npm also messes up.


Complete npm download in one step

The complete npm with all dependencies is available in Node.JS' release source archive =)

Simply:

  1. Download the desired release archive (.zip or .tar.gz) from Node.JS' release page.

  2. Extract the entire npm folder from the downloaded archive. It's located in sub-folder: deps/npm

Yes, the archive includes lots of other stuff irrelevant to npm. Still, it's a single file and much easier to download intact.


QED.

2 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page