`npm install @cloudflare/types` throws an error

I use @cloudflare/types to add types to my TypeScript code that runs on Node.js and uses the Cloudflare API. Currently, running npm install @cloudflare/types results in the following error:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@cloudflare%2fintl-types - Not found
npm ERR! 404 
npm ERR! 404  '@cloudflare/[email protected]^1.1.1' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Could someone working at Cloudflare fix this, please?

The only reference to @cloudflare/intl-types in @cloudflare/types is importing SupportedLocales in src/api/user.ts - doesn’t seem like it’s too important beyond that but I have no idea what SupportedLocales is made up of.

You can download just @cloudflare/types with something like pacote in the interim though.


If you take a look here: @cloudflare/types - npm
you see it does have 2 dependencies:

  1. https://www.npmjs.com/package/@cloudflare/intl-types
  2. https://www.npmjs.com/package/@cloudflare/util-en-garde

it seems that the first dependency was deleted from npm repo, but still is listed as a dependency. As it is still listed as a dependency in the package, npm will try to resolve it and fails.

I don’t know if it still needs this dependency or not. But as this package was updated 6 hours ago I guess the devs will fix this issue soon.

@chafic.najjar please create a ticket by sending an mail to support [at] cloudflare [dot] com and post the ticket #ID here as soon as you receive one?



Thanks both. The ticket ID is #2481815.

Me vende seus convidados

Thanks, I escalated it internally. Please wait, until someone responds here.


Thanks for flagging it. I replied on the ticket. Please respond with the latest update on the ticket.

We’re reviewing an advised @cloudflare/workers-types reference as opposed to *@cloudflare/types should be used.

However there are concerns raised pointing out these are different.

We have relayed the concern for review & will update as soon as available.

1 Like

I think someone at Cloudflare added back @cloudflare/intl-types to npm and as a result the command npm install @cloudflare/types now works again :tada:

Thanks for fixing this issue!