Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to keep npm cache #1519

Open
nxhack opened this issue Mar 29, 2023 · 0 comments
Open

Add option to keep npm cache #1519

nxhack opened this issue Mar 29, 2023 · 0 comments

Comments

@nxhack
Copy link
Owner

nxhack commented Mar 29, 2023

To speed up build time, we have added an option to keep a cache of npm packages.
Enabling this option will reduce network traffic and parallel-build times.
The npm cache for all this repository will take up about 7.5 GB of storage.

This option is available in the configuration menu of "node" package.

Known Issues:
The following error occurs

npm ERR! notarget No matching version found for [NPM-MODULE].
npm ERR! ERESOLVE unable to resolve dependency tree

That is an issue with the stale cache. It does not update to newer npm packages.
The workaround is to remove the matching npm cache.

Example
If you have this issue with node-npm-check-updates, please remove the cache as follows.

cd [NODEJS_NPM_CACHE_DIR]
rm -rf npm-cache-npm-check-updates
@nxhack nxhack pinned this issue Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant