Skip to content
This repository

Local npm cache #138

vvo opened this Issue · 5 comments

3 participants

Vincent Voyer Tim Caswell Jordan Harband
Vincent Voyer


Shouldn't we have a separate npm cache folder for each node version?

So that packages caches won't step on each other.

Tim Caswell

nvm is nothing more than a bash script that auto-configures node with a custom prefix and messes with your path. Where does npm store it's cache? If it's relative to the node install then it's separate.

Vincent Voyer

It is located in ~/.npm so shared accross nodejs versions that nvm installed.

Tim Caswell

I see. Though I'm not sure there is much value in not sharing the cache. It's all coming from the same npm repository. I guess if the cache format changed in some backwards incompatible way, then it could be dangerous. Still this seems outside the scope of nvm. I don't mess with how node or npm work. Just provide an easy way to install several versions and switch between them. Maybe there is some NPM_* environment variable we could set to move the cache to inside the local install?

Jordan Harband

Do any packages vary by node version? If not, let's close this.

Vincent Voyer

only the builded packages can vary I guess. No big deal here I think.

Vincent Voyer vvo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.