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/intl-types@^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.
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?