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

Feature Request: Provide a latest URL for the NVM install script #3509

Closed
songyuc opened this issue Jan 16, 2025 · 1 comment
Closed

Feature Request: Provide a latest URL for the NVM install script #3509

songyuc opened this issue Jan 16, 2025 · 1 comment
Labels
feature requests I want a new feature in nvm! installing nvm Problems installing nvm itself

Comments

@songyuc
Copy link

songyuc commented Jan 16, 2025

Summary
Having a latest (or equivalent) endpoint for the NVM install script would be helpful, so users can always install the most recent stable release without manually specifying the version number.

Context / Use Case

  • Newcomers to Node.js or NVM: Many beginners find it intimidating to track NVM versions. A single command like:
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/latest/install.sh | bash
    would simplify the installation process.
  • Educational environments: In high schools or beginner-friendly workshops, it's challenging for educators to constantly update their materials to reflect the newest version of NVM. Having a latest URL would allow instructions to remain valid for a long time.
  • Ease of updates: For users who just want to stay on the latest stable release without worrying about version details, a latest endpoint could serve that purpose.

Potential Implementation

  • Provide a stable redirect/endpoint https://raw.githubusercontent.com/nvm-sh/nvm/latest/install.sh that always points to the script corresponding to the latest released version (non-pre-release).
  • When a new version is released, the repository maintainers update this pointer automatically.

Benefits

  • Reduces friction for beginners: They don’t have to look up specific version numbers.
  • Minimizes confusion: Users can install NVM in one step without inadvertently installing an old version.
  • Less overhead for documentation: Third-party tutorials, articles, and classrooms can consistently link to latest.

Conclusion
Offering a latest endpoint for NVM’s install script would significantly lower the barrier to entry for newcomers, reduce documentation churn, and streamline installation.

Thanks for considering this feature request, and for all your hard work maintaining NVM!

@ljharb
Copy link
Member

ljharb commented Jan 16, 2025

This is quite intentionally not provided, as nobody should ever be blindly updating to the latest version of things without regard for breaking changes.

Follow #400 for self-updating; duplicate of #3473.

@ljharb ljharb closed this as completed Jan 16, 2025
@ljharb ljharb added feature requests I want a new feature in nvm! installing nvm Problems installing nvm itself labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm! installing nvm Problems installing nvm itself
Projects
None yet
Development

No branches or pull requests

2 participants