nvm管理node

1.查看nvm管理的node版本

C:\Users\10078>nvm ls

  * 20.12.0 (Currently using 64-bit executable)

2.查看在使用的node版本

C:\Users\10078>node -v
v20.12.0

3.查看nvm可以管理安装的node版本

C:\Users\10078>nvm list available

|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|    21.7.1    |   20.12.0    |   0.12.18    |   0.11.16    |
|    21.7.0    |   20.11.1    |   0.12.17    |   0.11.15    |
|    21.6.2    |   20.11.0    |   0.12.16    |   0.11.14    |
|    21.6.1    |   20.10.0    |   0.12.15    |   0.11.13    |
|    21.6.0    |    20.9.0    |   0.12.14    |   0.11.12    |
|    21.5.0    |   18.20.0    |   0.12.13    |   0.11.11    |
|    21.4.0    |   18.19.1    |   0.12.12    |   0.11.10    |
|    21.3.0    |   18.19.0    |   0.12.11    |    0.11.9    |
|    21.2.0    |   18.18.2    |   0.12.10    |    0.11.8    |
|    21.1.0    |   18.18.1    |    0.12.9    |    0.11.7    |
|    21.0.0    |   18.18.0    |    0.12.8    |    0.11.6    |
|    20.8.1    |   18.17.1    |    0.12.7    |    0.11.5    |
|    20.8.0    |   18.17.0    |    0.12.6    |    0.11.4    |
|    20.7.0    |   18.16.1    |    0.12.5    |    0.11.3    |
|    20.6.1    |   18.16.0    |    0.12.4    |    0.11.2    |
|    20.6.0    |   18.15.0    |    0.12.3    |    0.11.1    |
|    20.5.1    |   18.14.2    |    0.12.2    |    0.11.0    |
|    20.5.0    |   18.14.1    |    0.12.1    |    0.9.12    |
|    20.4.0    |   18.14.0    |    0.12.0    |    0.9.11    |
|    20.3.1    |   18.13.0    |   0.10.48    |    0.9.10    |

This is a partial list. For a complete list, visit https://nodejs.org/en/download/releases

4.安装需要的node版本

C:\Users\10078>nvm install 18.12.1
Downloading node.js version 18.12.1 (64-bit)...
Extracting node and npm...
Complete
npm v8.19.2 installed successfully.


Installation complete. If you want to use this version, type

nvm use 18.12.1

5.使用需要的node版本

C:\Users\10078>nvm ls

  * 20.12.0 (Currently using 64-bit executable)
    18.12.1

C:\Users\10078>nvm use 18.12.1
Now using node v18.12.1 (64-bit)

C:\Users\10078>node -v
v18.12.1

注:nvm下载地址==>https://github.com/coreybutler/nvm-windows/releases/tag/1.1.12

 

element-plus本地启动

下载地址:

需要安装的命令

D:\software\workspace\element-plus>pnpm install
Scope: all 17 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1553



D:\software\workspace\element-plus>npm install pnpm -g

added 1 package in 4s

1 package is looking for funding
run `npm fund` for details

查看安装的版本

D:\software\workspace\element-plus>pnpm -v
8.15.5

启动

D:\software\workspace\element-plus>npm run dev

> dev
> pnpm -C play dev


> @element-plus/play@ dev D:\software\workspace\element-plus\play
> vite


  vite v2.9.15 dev server running at:

  > Network:  http://192.168.3.8:3000/
  > Local:    http://localhost:3000/

  ready in 3477ms.

 

posted @ 2025-09-08 18:48  借你耳朵说爱你  阅读(10)  评论(0)    收藏  举报