NPM download stats are down

François Best • 21 September 2023 • 2 min read

I noticed the problem on 2023-09-14, while I was working on my NPM package embed.

It looks like this, showing NPM download stats for the last 30 days:

Avatar for GitHub account facebookfacebook/react

240K
6.3B
19.2.0
MIT

The library for web and native user interfaces.

$ pnpm add react
$ yarn add react
$ npm install react

Version rolloutLast week

18.3.1
18M (36%)
19.2.0
8.7M (18%)
18.2.0
5.3M (11%)
19.1.0
4.9M (10%)
17.0.2
3.2M (06%)
7,959,80906 Oct8,451,06607 Oct8,279,71708 Oct8,255,37009 Oct7,601,04310 Oct2,901,82311 Oct2,815,91712 Oct7,407,20213 Oct8,297,85014 Oct8,455,42215 Oct8,376,70916 Oct7,905,86717 Oct018 Oct3,381,95519 Oct7,753,26820 Oct021 Oct8,727,97222 Oct8,727,40623 Oct9,152,76024 Oct4,017,42625 Oct3,310,69026 Oct8,725,49727 Oct8,813,60728 Oct8,652,90629 Oct9,958,71430 Oct7,583,57131 Oct3,156,26401 Nov3,109,12002 Nov8,234,31003 Nov004 Nov190,013,261Last 30 days

After seeing the latest download stats zero-out, I thought it was a bug in my code, but a quick call to the NPM registry API confirmed there’s an issue across the whole registry:

$ curl -s https://api.npmjs.org/downloads/range/2023-09-12:2023-09-20/ | jq .
 
{
    "start": "2023-09-12",
    "end": "2023-09-20",
    "downloads": [
        {
            "downloads": 10511123926,
            "day": "2023-09-12"
        },
        {
            "downloads": 0,
            "day": "2023-09-13"
        },
        {
            "downloads": 0,
            "day": "2023-09-14"
        },
        {
            "downloads": 8912767625,
            "day": "2023-09-15"
        },
        {
            "downloads": 2444583811,
            "day": "2023-09-16"
        },
        {
            "downloads": 2260617731,
            "day": "2023-09-17"
        },
        {
            "downloads": 0,
            "day": "2023-09-18"
        },
        {
            "downloads": 0,
            "day": "2023-09-19"
        },
        {
            "downloads": 0,
            "day": "2023-09-20"
        }
    ]
}

And indeed, other popular packages show the same decline:

Avatar for GitHub account vuejsvuejs/core

52K
1.4B
3.5.22
MIT

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

$ pnpm add vue
$ yarn add vue
$ npm install vue

Version rolloutLast week

3.5.22
1.9M (27%)
3.5.13
1.1M (15%)
2.7.16
778K (11%)
3.5.21
384K (05%)
3.5.18
335K (05%)
1,239,07606 Oct1,319,53907 Oct1,305,37208 Oct1,291,70909 Oct1,180,65510 Oct418,09811 Oct368,10312 Oct1,178,67313 Oct1,338,97314 Oct1,350,19515 Oct1,343,31016 Oct1,194,91217 Oct018 Oct432,43019 Oct1,218,84420 Oct021 Oct1,354,02722 Oct1,322,00123 Oct1,303,59824 Oct495,79825 Oct390,65726 Oct1,328,16427 Oct1,335,27628 Oct1,315,10829 Oct1,329,82830 Oct1,133,23131 Oct416,16901 Nov363,66402 Nov1,252,23103 Nov004 Nov28,519,641Last 30 days

Avatar for GitHub account angularangular/angular

99K
1B
20.3.9
MIT

Deliver web apps with confidence 🚀

$ pnpm add @angular/core
$ yarn add @angular/core
$ npm install @angular/core

Version rolloutLast week

9.0.0
366K (09%)
19.2.15
272K (06%)
18.2.13
225K (05%)
19.2.14
219K (05%)
17.3.12
215K (05%)
771,56706 Oct806,20007 Oct796,53308 Oct784,04409 Oct707,14010 Oct152,04711 Oct146,40012 Oct722,08313 Oct803,06214 Oct802,93615 Oct815,58116 Oct743,55817 Oct167,97918 Oct170,52219 Oct644,88720 Oct021 Oct792,00222 Oct799,03223 Oct807,31324 Oct216,29225 Oct163,22926 Oct781,74127 Oct820,84728 Oct809,97529 Oct820,49430 Oct704,00631 Oct163,93001 Nov151,45102 Nov764,76903 Nov004 Nov16,829,620Last 30 days

After a couple of days, it started to show on NPM’s own website:

NPM download stats for the react package, with a visible drop towards the end of the line

Reddit and Hacker News users were quick to react, with some hilarious comments:

Bun 1.0 is out, so everyone is switching to that.

You should use PNPM anyway.

Some folks were prompt to draw ominous conclusions:

Well, that confirms it, javascript and front end development is dead. I'll start looking for a new job.
drpossum | Hacker News

This proves React is dead, you should use Svelte now.

Someone who didn’t notice Svelte stats were also down:

Avatar for GitHub account sveltejssveltejs/svelte

web development for the rest of us

$ pnpm add svelte
$ yarn add svelte
$ npm install svelte

Version rolloutLast week

5.43.2
159K (08%)
4.2.20
159K (08%)
4.2.19
158K (08%)
3.59.2
129K (07%)
5.34.9
118K (06%)
341,17006 Oct359,79707 Oct351,88608 Oct323,87309 Oct311,26010 Oct121,96911 Oct126,04612 Oct300,16613 Oct354,25014 Oct352,43815 Oct346,60716 Oct335,39517 Oct136,23518 Oct019 Oct329,89920 Oct389,11321 Oct358,49422 Oct349,40823 Oct348,74724 Oct155,81725 Oct133,16226 Oct344,78627 Oct352,14328 Oct331,55729 Oct335,62430 Oct312,62531 Oct138,13201 Nov122,61402 Nov325,98403 Nov004 Nov8,089,197Last 30 days

Official response from NPM

I contacted NPM support on 2023-09-15, but didn’t get much of a useful response:

Yes, we also see the zero download count on different packages.

This issue remains under investigation.

We will let you know once we have an update.

Resolution

As of 2023-09-24, the problem seems to have been resolved. Stats are returning to normal, and previous zero values have been restored for all tested packages.


François Best

Freelance developer & founder