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

推荐订阅源

WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Last Watchdog
The Last Watchdog
AI
AI
Webroot Blog
Webroot Blog
aimingoo的专栏
aimingoo的专栏
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog RSS Feed
小众软件
小众软件
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
W
WeLiveSecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Troy Hunt's Blog
云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Vercel News
Vercel News
Y
Y Combinator Blog
P
Proofpoint News Feed
V2EX - 技术
V2EX - 技术
AWS News Blog
AWS News Blog
F
Fortinet All Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
V2EX
MongoDB | Blog
MongoDB | Blog
SecWiki News
SecWiki News
The Register - Security
The Register - Security
博客园_首页
T
Threat Research - Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
V
Vulnerabilities – Threatpost
I
InfoQ
雷峰网
雷峰网
C
Check Point Blog

博客园 - 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