---
title: "windows 下使用NVM 管理node版本"
author: "mr.a"
date: "2018-06-25T16:59:00Z"
tags: []
categories: ["Web前端"]
slug: "windows-nvm-node"
draft: false
lastmod: "2018-06-25T16:59:00Z"
id: 2425557
url: "https://mr-a.iteye.com/blog/2425557"
---

quote: https://blog.csdn.net/qq\_29262849/article/details/52973095  教程很详细 感谢~ 不过有点过时， 下面是A君的简化版

 

因为A君有旧的项目总是要切换node版本， 用nvm这个工具会很方便~~

 

1\. 建议删掉node 重新用nvm安装

 

附件是nvm的setup， 好心吧~

 

我装在 d:\\nvm 了， 另外安装时要指定node\_home 我放在 d:\\nodejs 了. win下问题多多， 想尽量避免类似 ‘program files' 这样的路径..

 

2\. 装好后cd到 d:\\nvm, 执行如下命令

nvm node\_mirror https://npm.taobao.org/mirrors/node/ nvm npm\_mirror https://npm.taobao.org/mirrors/npm/

 

3\. 然后 nvm install 8.11.3

 

DONE~