Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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