Skip to content

feat(env): install Node.js using a version range#3629

Merged
zkochan merged 5 commits into
mainfrom
install-node-by-range
Jul 30, 2021
Merged

feat(env): install Node.js using a version range#3629
zkochan merged 5 commits into
mainfrom
install-node-by-range

Conversation

@zkochan

@zkochan zkochan commented Jul 30, 2021

Copy link
Copy Markdown
Member

No description provided.

@zkochan zkochan added this to the v6.12 milestone Jul 30, 2021
@zkochan zkochan force-pushed the install-node-by-range branch from 7c84104 to 52557f2 Compare July 30, 2021 12:47
expect(stdout.toString()).toBe('v6.17.1')

const dirs = fs.readdirSync(path.resolve('nodejs'))
expect(dirs).toEqual(['6.17.1'])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could users download any Node.js version?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any of those that are in this index: https://nodejs.org/download/release/index.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, the point is being able to download any Node.js version #3434 but the bundle one is something already predefined in build time.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the bundled one is static. The bundled one is only used to run the pnpm CLI

@juanpicado

Copy link
Copy Markdown
Member

@zkochan what's the command to test it?

@zkochan

zkochan commented Jul 30, 2021

Copy link
Copy Markdown
Member Author

pnpm env use -g lts

@juanpicado juanpicado left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zkochan zkochan merged commit 27e6331 into main Jul 30, 2021
@zkochan zkochan deleted the install-node-by-range branch July 30, 2021 21:21
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.

2 participants