I have an Nx monorepo (https://nx.dev).
It has a folder with Nx cache (./node_modules/.cache/nx/
).
Its size for now is over 3GB.
Is there a command for clear this cache?
Nx cache can be cleared by removing files in the directory node_modules/. cache/nx . Sometimes, you have to clear cache. For example, if you moved a component to another library, the component was still kept in the cache of the old library.
The cached value is stored by default in node_modules/. cache/nx .
Save Time with Distributed Task Execution & CacheNx caches the output of any previously run command such as testing and building, so it can replay the cached results instead of rerunning it. Nx Cloud allows you to share the computation cache across everyone in your team and CI.
Clears all the cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon.
Just delete the whole 'nx' cache folder:
rm -rf ./node_modules/.cache/nx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With