Cloudflare DevelopersCD
Cloudflare Developers2y ago
7 replies
Sticks

Custom NPM Registry

I cannot deploy to pages because on of my pacakages is not on npmjs's registery, rather a custom URL to a hosted Registry. This Registry does not have auth and I know it's url.

How do I tell pages to use this for the package I need to install from there? I've tried:

- Reading the docs to no avail (confusing on what you even need to do)
- Trying to forcefully set the Registry using a preinstall hook
- Including the tgz in the git repo and using
file:<path>
in pacakge.json to try installing from a file, didn't work.

This is very frustrating to say the least. Please make this more clear in docs!
Was this page helpful?