0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/website/versioned_docs/version-5.x/setup-deno.md
Juan Picado 441c226fbb
Add documentation for bun and deno using private registry (#4661)
* Add documentation for bun and deno using private registry

* Update setup-bun.md

* update docs
2024-06-04 23:35:46 +02:00

1.2 KiB

id title
setup-deno deno

deno

The minimum supported deno version is >1.44.0

Using registry for a specific project

Create a .npmrc file and set

registry=http://localhost:4873

On run deno command the installation will be done from the local registry.

Troubleshooting

Clear cache with deno

> deno info

DENO_DIR location: /Users/user/Library/Caches/deno
Remote modules cache: /Users/user/Library/Caches/deno/deps
npm modules cache: /Users/user/Library/Caches/deno/npm
Emitted modules cache: /Users/user/Library/Caches/deno/gen
Language server registries cache: /Users/user/Library/Caches/deno/registries
Origin storage: /Users/user/Library/Caches/deno/location_data

And remove the local cache for th specific registry you have set (by default is localhost_4873)

// for MAC OS users (other OS may vary)
rm -Rf /Users/user/Library/Caches/deno/npm/localhost_4873

It's not clear if there is a better way to do this, please refer to the following discussion for more information.