惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
D
Docker
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
美团技术团队
V
V2EX
Last Week in AI
Last Week in AI
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
B
Blog RSS Feed
博客园_首页
B
Blog
博客园 - 叶小钗
I
InfoQ
WordPress大学
WordPress大学
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Latest news
Latest news
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
S
Secure Thoughts
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News

博客园 - talenth

windows下简单使用webrtc ATL开发office插件 windows编译pp-shitu webdriver windows下不同cpu架构PE文件区别 vs中/EHa、/EHs、/EHsc的区别 主窗口,子窗口,拥有窗口关闭消息顺序 windows下注册一个打开特定扩展名的文件 yara规则学习 usb3.0+mvme固态安装win7 驱动程序获取内核版本号 提取shell32.dll中的字符串 常见编码 修理鼠标微动开关 InfinityHook原理 段描述符 tls1.3报文 签名证书 windows内核同步机制
nvm配置nodejs
talenth · 2025-05-29 · via 博客园 - talenth

参考网站:

https://blog.csdn.net/i_for/article/details/135060019

一 nvm

1 nvm下载

https://github.com/coreybutler/nvm-windows/releases

下载nvm-noinstall.zip即可

2 安装配置

<1> 解压到适当目录

<2> 配置环境变量

NVM_HOME --> nvm.exe所在的目录

NVM_SYMLINK -->nodejs的快捷方式位置, 将来通过nvm下载配置的nodejs就通过这个快捷方式找到对应版本的nodejs. (比如这个配置"D:\GreenDevSoftware\nodejs")

PATH -->里面添加上面两个环境变量 "%NVM_HOME%"  "%NVM_SYMLINK%".

注意: 前面两个环境变量必须配置, NVM程序使用"%NVM_HOME%" 目录下的配置文件"settings.txt", 将nodejs下载到"%NVM_HOME%" 目录下

<3> 配置"%NVM_HOME%"下的配置文件"settings.txt"

写入下面配置项

root: D:\GreenDevSoftware\nvm-noinstall_1.2.2
path: D:\GreenDevSoftware\nodejs
node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/

<4> 测试

nvm list--> 列出当前安装的nodejs版本

nvm list available --> 列出网上可供下载的nodejs版本

nvm install 22.16.0 --> 下载 22.16.0 版本

nvm use 22.16.0 --> 将当前版本切换为 22.16.0

 二 node

2 npm配置文件位置(就是通过npm config set设置的东西)

c:\Users\用户名\.npmrc