ECMAScript Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

If we have also installed version v9.6.1, we would use the following command to set it as the default:

    nvm use 9.6.1

Now when we open a new shell, v8.6.0 will be the Node.js version in use. Unlike the macOS and Linux versions, the last version selected is maintained through shell sessions, and a default doesn't need to be set.