Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用nvm工具一可以执行nvm use 6以选择最新安装的 node.js v6。我将如何使用CLI 工具做同样的事情?n
nvm
nvm use 6
n
命令将在 CI 上执行。
n 6将安装(激活)最新版本的节点 6。
n 6
您可以指定部分版本号,n它将使用最新的匹配版本。
我们可以实现它的一种简单方法,
n ls Output the versions of node available
选择你需要的,一般用常规的n法安装?
n <version> Install node <version>