Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端node版本管理解决办法 #4

Open
lr6 opened this issue Jan 25, 2024 · 0 comments
Open

前端node版本管理解决办法 #4

lr6 opened this issue Jan 25, 2024 · 0 comments

Comments

@lr6
Copy link
Owner

lr6 commented Jan 25, 2024

前端node版本管理解决办法

前言

前端开发往往需要在不同的 node 版本之间切换,,nvm 是比较流行好用的 node 版本管理工具

第一步 删除电脑上之前的nodenvm

删除指的是直接卸载,不是删除文件夹 (有则删除,没有则略过这一步)

第二步,安装 nvm

下载地址

# 查看nvm的文档
nvm help

第三步 找到 nvm 的安装目录下的 settings.txt 文件,添加镜像

node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/

不知道 nvm的安装目录

# 查询nvm的安装目录
where nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant