上QQ阅读APP看书,第一时间看更新
Documenting Node versions
We should document which version of Node we are running our API server with. To do this with nvm, we simply have to define a .nvmrc file in the root directory of our project. Then, any developers working on the API will be able to use the right Node version by running nvm use. Therefore, create a new project directory and run git init to create a new Git repository. Once that's done, create a new .nvmrc file that contains a single line that reads 8.11.4:
$ mkdir hobnob && cd hobnob
$ git init
$ echo "8.11.4" > .nvmrc