Comments (5)
Hey @aaronwlee what OS are you on? Windows?
from denopack.
Deno caches remote imports in a special directory specified by the DENO_DIR environment variable.
It defaults to the system's cache directory if DENO_DIR is not specified.
The next time you run the program, no downloads will be made.
If the program hasn't changed, it won't be recompiled either. The default directory is:
On Linux/Redox: $XDG_CACHE_HOME/deno or $HOME/.cache/deno
On Windows: %LOCALAPPDATA%/deno (%LOCALAPPDATA% = FOLDERID_LocalAppData)
On macOS: $HOME/Library/Caches/deno
If something fails, it falls back to $HOME/.deno
I'll add fallbacks to these folders and an option to pass a custom path to the Deno root folder in the next release.
This would only occur if you're using pluginCacheResolver
or one of the hooks that uses it internally.
You could use the useCompile
hook in the meantime, which also automatically uses the correct cache folder.
I'd still be interested to hear what OS you're on, how you installed Deno (using deno_install?) and where your Deno root folder is located (the one where your Deno executable is located and has a gen and dep subfolder)
from denopack.
I've tested it in Windows 10 2004 (19041.388 build) and WSL (Ubuntu bionic)
For the installation, In the Windows system, I've installed it via chocolatey and curl -fsSL https://deno.land/x/install/install.sh | sh
in Ubuntu.
Both of these OS doesn't have a DENO_DIR env.
you can get some hint from here I think :)
https://github.com/timreichen/Bundler/blob/master/cache.ts
from denopack.
@aaronwlee I just published a new version with better cache support. Can you check if this behaviour has changed with denopack 0.2.0?
from denopack.
I spun up a remote Linux server to check if it now resolves properly, so I'm closing this issue for now.
@aaronwlee if issues on Windows persist feel free to reopen this issue 🙂
from denopack.
Related Issues (19)
- Support for top-level await HOT 11
- bug: non root html emit does not work HOT 1
- Support import maps HOT 2
- [BUG] pluginCssBundle doesn't resolve locations correctly
- deno fmt precommit hook
- Remote debugging in VS Code HOT 1
- Multiple decorators are not getting called HOT 2
- [BUG] Installation error in Deno 1.5.x: CertNotValidForName HOT 4
- [BUG] Getting a 500 Internal Server Error while installing HOT 1
- [BUG] Cannot destructure property 'output' HOT 3
- [BUG] Debugging experience is very poor HOT 4
- [BUG] Ignores directories in output filename/sourcemap HOT 1
- [Problem]: No longer works with Deno 1.7.0
- [BUG] Can't install (No such host is known.)
- Move readme to docs site
- TS error in rollup dependency on package install/run HOT 8
- Frontend related roadmap
- Polyfilled Node version of Rollup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denopack.