Skip to content

镜像切换

terminal
bash
# 查看当前源
$ yarn config get registry

# 切换源地址

# 切换淘宝源
$ yarn config set registry https://registry.npm.taobao.org

# 默认源地址
$ yarn config set registry https://registry.yarnpkg.com

管理node包工具

nvm

nvm是一个来管理node的工具,方便我们在开发过程中node版本的切换 一定要卸载已安装的 NodeJS,否则会发生冲突。然后下载 nvm-windows 最新安装包,直接安装即可。 安装完成之后检查环境变量,新版应该是默认配置了,但是检查一下,如果没有对应的进行配置。 use:

nvm list 查看当前安装的版本等于nvm ls nvm list installed nvm list available nvm use [版本号] 切换到指定版本 [版本号] nvm uninstall [版本号] 删除指定版本 nvm -h 就可以看到nvm的所有命令了,都有相应的解释。

image.png

image.png

image.png

image.png

node

yarn

terminal
bash
# 设置为淘宝源:
yarn config set registry https://registry.npm.taobao.org

# 设置为默认源:
yarn config set registry https://registry.yarnpkg.com

nrm

nrm(npm registry manager )是npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在 npm 源间切换 npm install -g nrm

image.png

带*的是当前使用的源

查看可选源nrm ls
测试源响应时间nrm test taobao
切换源nrm use taobao
增加定制源nrm add [name] [url]
删除源nrm del [name]

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.