nodejs.dev icon indicating copy to clipboard operation
nodejs.dev copied to clipboard

Add winget commands in install tabs

Open manishprivet opened this issue 3 years ago • 8 comments

Summary

Microsoft recently launched version 1.0 of its official package manager Winget, and we can install node by simply running winget install node.

We can also install nvs through winget install nvs if that's what we're preferring.

Should this be added into the install tabs on the homepage alongside choco?

manishprivet avatar Jun 03 '21 04:06 manishprivet

@bnb Should we add this? Is it still in a preview state?

benhalverson avatar Jun 03 '21 16:06 benhalverson

AFAIK they're pulling Node.js - we're not pushing it. For this site right now, we can include it but before this is prod nodejs.org we'd want to be publishing it with their manifest creator.

bnb avatar Jun 03 '21 16:06 bnb

See also https://github.com/nodejs/node/issues/38877 / https://github.com/nodejs/node/pull/34014 / https://github.com/nodejs/admin/issues/535

richardlau avatar Jun 03 '21 16:06 richardlau

AFAIK they're pulling Node.js - we're not pushing it. For this site right now, we can include it but before this is prod nodejs.org we'd want to be publishing it with their manifest creator.

Do we? We don't, for example, push Node.js packages to any of the Linux distributions nor any other package manager (e.g. brew).

richardlau avatar Jun 03 '21 16:06 richardlau

AFAIK they're pulling Node.js - we're not pushing it. For this site right now, we can include it but before this is prod nodejs.org we'd want to be publishing it with their manifest creator.

I think there are already manifests for almost every version of Nodejs in there under the OpenJS organization.

manishprivet avatar Jun 03 '21 17:06 manishprivet

@manishprivet WDYT, does it make sense to add it to the Package Manager section of the website?

ovflowd avatar Jul 27 '22 15:07 ovflowd

@ovflowd , I think a package manager section will be helpful.

As of right now, we're using choco right on top alongside windows, which shows that we prefer that over winget, which is the first-party tool. If we stand on that ground, then I guess that's fine.

Another fact supporting replacement of choco to winget on the site is that even nvs now has winget as the preferred choice for installation (https://github.com/jasongin/nvs#windows)

Alternatively, we have a generic installation method for windows as well (https://github.com/coreybutler/nvm-windows).

manishprivet avatar Aug 05 '22 18:08 manishprivet

@manishprivet I discovered we already have a package manager section ;D

But we can definitely add winget to the section 👀

ovflowd avatar Aug 06 '22 10:08 ovflowd

This one can be closed as we already have winget https://nodejs.dev/en/download/package-manager#alternatives-3

harish-sethuraman avatar Oct 04 '22 10:10 harish-sethuraman