Vasyl Boroviak
Vasyl Boroviak

Reputation: 6128

How to select the latest node.js v6 version using n?

With nvm tool one can execute nvm use 6 to select the latest installed node.js v6. How would I do the same using the n CLI tool?

The command(s) will be executed on the CI.

Upvotes: 0

Views: 636

Answers (2)

shadowspawn
shadowspawn

Reputation: 3825

n 6 will install (activate) the newest version of node 6.

Or n install 6 if you prefer a more readable command.

You can specify partial version numbers with n and it will use the newest matching version.

Upvotes: 2

Technologeek
Technologeek

Reputation: 190

One simple way we can achieve it,

  n ls                           Output the versions of node available

Select the one which you need and install by generally by regular n method ?

  n <version>                    Install node <version>

Upvotes: 0

Related Questions