Salta al contenuto principale
Versione: 6.x

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.