Skip to content

Conversation

cinderblock
Copy link

Description

This change adds winget to the list of ways to install Node.js on Windows.

Validation

A new entry on https://nodejs.org/en/download/package-manager

Related Issues

#4028 - regression
#3993

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

npm install fails on my Windows machine. Cannot run any test commands.

@cinderblock cinderblock requested a review from a team as a code owner July 31, 2024 00:51
Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 31, 2024 6:14pm

@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2024

Sorry, I don't think this will land; For context, we're halting any additions or changes to the CodeBoxes as we redesign the Package Managers page, splitting it into a Node version managers page and an OS package manager page.

I don't speak for the website team, but I don't think this would land, at least now, since we are still in a scoping phase of how we will restructure this page.

I appreciate the effort you've put in here. I'll let other website team members also comment on this :)

@cinderblock
Copy link
Author

@ovflowd That makes sense. Thank you for the detail.

I hope WinGet gets noted more prominently. It's the easiest and fastest way to install Node on modern Windows systems. No extra dependencies and is easy to update everything: winget upgrade --all

@cinderblock cinderblock changed the title List winget as install method for Windows List WinGet as install method for Windows Jul 31, 2024
@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2024

@ovflowd That makes sense. Thank you for the detail.

I hope WinGet gets noted more prominently. It's the easiest and fastest way to install Node on modern Windows systems. No extra dependencies and is easy to update everything: winget upgrade --all

Winget is already listed here: https://nodejs.org/en/download/package-manager/all#windows-1

@cinderblock
Copy link
Author

I saw that in the source code but wasn't sure how to even get to the ./all url from the normal page.

In any case, glad y'all are on it!

@cinderblock
Copy link
Author

Friendly bump. Any progress on the Package Managers page updates? Is there a milestone/branch we can track?

@ovflowd
Copy link
Member

ovflowd commented Sep 10, 2024

Friendly bump. Any progress on the Package Managers page updates? Is there a milestone/branch we can track?

Hey there! Unfortunately not. I realized I forgot to open the issue here, I was low bandwidth and asked for colleagues to open one (https://openjs-foundation.slack.com/archives/C044DNU6TEH/p1724524239630829)

Let me open an issue to keep track of the work :)

@ovflowd
Copy link
Member

ovflowd commented Sep 12, 2024

I've opened an issue: #7037, finally!

@ovflowd
Copy link
Member

ovflowd commented Dec 28, 2024

Hey @cinderblock since the recent changes on our Downloads page we can revisit this! I've noticed that Winget is quite outdated and doesn't contain any versions of the latest major v20,v21,v22 and v23 versions.

cc @nodejs/platform-windows and @nodejs/build any idea who maintains that Winget package? I see a OpenJS namespace here? https://winget.run/pkg/OpenJS/NodeJS

Edit: It is frequently updated. @cinderblock feel free to make a new PR. I'm going to add guidelines on how to add new methods.

@ljharb
Copy link
Member

ljharb commented Dec 28, 2024

When a new node version is released, is it instantly available on winget, or does it require a followup action (automated or manual) to make it available?

@ovflowd
Copy link
Member

ovflowd commented Dec 28, 2024

When a new node version is released, is it instantly available on winget, or does it require a followup action (automated or manual) to make it available?

No idea, haven't checked to be honest.

@masterflitzer
Copy link

i am not well versed in winget from a maintainer pov, only from a user pov, but afaik new versions are added via PR that require manual review, the PR can be done manually or automatically:

@ljharb
Copy link
Member

ljharb commented Dec 28, 2024

gotcha, then it seems winget might make sense as a "community" option?

@denelon
Copy link

denelon commented Jan 6, 2025

You can also look at how PowerToys automated publishing to the WinGet Community repository at:
https://github.com/microsoft/PowerToys/blob/main/.github/workflows/package-submissions.yml

@mdanish-kh
Copy link

You can also look at how PowerToys automated publishing to the WinGet Community repository at: microsoft/PowerToys@main/.github/workflows/package-submissions.yml

Created a PR that proposes automating the release as they're published at GitHub

@ovflowd
Copy link
Member

ovflowd commented Jan 26, 2025

I feel this PR has been abandoned by the author and would recommend a new one to be opened.

@ovflowd ovflowd closed this Jan 26, 2025
@cinderblock
Copy link
Author

Are all of the changes to the download page finished? I'm happy to rebase/redo these changes, if necessary.

Are we waiting for #56774 to land?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants