当前位置: 首页 > news >正文

使用NVM管理多个Nodejs版同时支持vue2、vue3

1.安装nvm,下载地址:
https://github.com/coreybutler/nvm-windows/releases/tag/1.1.12

2.nvm常用命令

Usage:nvm arch                     : Show if node is running in 32 or 64 bit mode.nvm current                  : Display active version.nvm debug                    : Check the NVM4W process for known problems (troubleshooter).nvm install <version> [arch] : The version can be a specific version, "latest" for the latest current version, or "lts" for themost recent LTS version. Optionally specify whether to install the 32 or 64 bit version (defaultsto system arch). Set [arch] to "all" to install 32 AND 64 bit versions.Add --insecure to the end of this command to bypass SSL validation of the remote download server.nvm list [available]         : List the node.js installations. Type "available" at the end to see what can be installed. Aliased as ls.nvm on                       : Enable node.js version management.nvm off                      : Disable node.js version management.nvm proxy [url]              : Set a proxy to use for downloads. Leave [url] blank to see the current proxy.Set [url] to "none" to remove the proxy.nvm node_mirror [url]        : Set the node mirror. Defaults to https://nodejs.org/dist/. Leave [url] blank to use default url.nvm npm_mirror [url]         : Set the npm mirror. Defaults to https://github.com/npm/cli/archive/. Leave [url] blank to default url.nvm uninstall <version>      : The version must be a specific version.nvm use [version] [arch]     : Switch to use the specified version. Optionally use "latest", "lts", or "newest"."newest" is the latest installed version. Optionally specify 32/64bit architecture.nvm use <arch> will continue using the selected version, but switch to 32/64 bit mode.nvm root [path]              : Set the directory where nvm should store different versions of node.js.If <path> is not set, the current root will be displayed.nvm [--]version              : Displays the current running version of nvm for Windows. Aliased as 

nvm list --查看版本
nvm use [node版本号]
nvm install [node版本号]
nvm uninstall [node版本号]
在这里插入图片描述

http://www.lryc.cn/news/248819.html

相关文章:

  • Android帝国之进程杀手--lmkd
  • 堆栈_队列实现栈
  • 好用的json处理工具He3 JSON
  • RabbitMQ消息模型之Routing-Direct
  • Harmony 应用开发之size 脚本
  • 商家门店小程序怎么做?门店小程序的优势和好处
  • 什么是灯塔工厂?灯塔工厂的作用?
  • 【GEO-AI】SAM-Geo库(segment-geospatial)入门教程
  • ESP32-Web-Server 实战编程-使用文件系统建立强大的 web 系统
  • kubeadm快速搭建k8s高可用集群
  • GoLong的学习之路,进阶,Redis
  • Linux重置MySql密码(简洁版)
  • Ubuntu部署jmeter与ant
  • 如何使用 RestTemplate 进行 Spring Boot 微服务通信示例?
  • 新开普掌上校园服务管理平台service.action RCE漏洞复现 [附POC]
  • 滤波器、卷积核与内核的关系
  • 沉默是金,寡言为贵
  • 【网络奇遇之旅】:那年我与计算机网络的初相遇
  • 量化误差的测量
  • 8年测试工程师分享,我是怎么开展性能测试的(基础篇)
  • 微服务API网关Spring Cloud Gateway实战
  • uniapp打包ios有时间 uniapp打包次数
  • 【笔记+代码】JDK动态代理理解
  • Java八股文面试全套真题【含答案】-Vue篇
  • 介绍比特币上的 sCrypt 开发平台
  • 什么是路由抖动?该如何控制
  • 2023SICTF-web-白猫-RCE
  • 1.用数组输出0-9
  • Selenium 元素不能定位总结
  • 1-2 非阻塞延时实现LED闪烁功能(累计定时中断次数)--多路软件定时器的功能实现