用nvm安装最新的偶数节点?

Install the latest even-numbered node with nvm?

建议您安装最新的 even numbered node,因为:

You should always use even-numbered versions marked LTS that says “Recommended for Most Users” on the download page.

and:

After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use.

有没有办法(最好是单行)安装最新的偶数节点而不必 look it up? (是的,这很懒惰,但它避免了任何人为错误的机会,并且还允许文档保持最新状态多年,因为像 nvm install 16 这样的东西将来需要更新)。

nvm install --lts 就是您的做法。 Here are the docs 了解更多有趣的细节。