zl程序教程

您现在的位置是:首页 >  后端

当前栏目

[Tools] Install and Manage Node.js Versions with nvm

JSNode and with install tools nvm versions
2023-09-14 09:00:47 时间

It can be difficult to work on multiple projects that use different versions of Node.

nvm (Node Version Manger) make this easier by allowing you to download multiple versions and switch between them. You can also add a NVM configuration file (i.e. .nvmrc) to specify which version you want to use for each project.

 

Create .nvmrc:

lts/erbium // v12

// or just list the version you want to use

5.12.0

 

Then just run:

nvm use