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 --cleanup #818

Merged
merged 3 commits into from
Oct 19, 2024
Merged

Add --cleanup #818

merged 3 commits into from
Oct 19, 2024

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Oct 6, 2024

Pull Request

Problem

Multiple commands are needed to do a one-shot install without leaving behind an extra copy in the cache folder. This came up in context of docker container setup.

See: #809

Solution

Add --cleanup which will delete cached version after install.

% n install --cleanup 20.0.0
  installing : node-v20.0.0
       mkdir : /usr/local/n/versions/node/20.0.0
       fetch : https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-arm64.tar.xz
     copying : node/20.0.0
   installed : v20.0.0 (with npm 9.6.4)
     cleanup : removing cached node/20.0.0

ChangeLog

  • Added: --cleanup to delete cached version after install for a one-shot install

@shadowspawn shadowspawn marked this pull request as ready for review October 19, 2024 22:04
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Oct 19, 2024
@shadowspawn shadowspawn merged commit 65bd2fe into develop Oct 19, 2024
@shadowspawn shadowspawn deleted the feature/cleanup branch October 19, 2024 22:05
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Nov 8, 2024
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

Successfully merging this pull request may close these issues.

1 participant