码迷,mamicode.com
首页 > 其他好文 > 详细

nvm 常用命令

时间:2020-12-24 12:04:21      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:eve   orm   value   cte   china   uninstall   running   img   continue   

  • nvm arch [32|64]: Show if node is running in 32 or 64 bit mode. Specify 32 or 64 to override the default architecture.
  • nvm install <version> [arch]: The version can be a node.js version or "latest" for the latest stable version. Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions.
  • nvm list [available]: List the node.js installations. Type available at the end to show a list of versions available for download.
  • nvm on: Enable node.js version management.
  • nvm off: Disable node.js version management (does not uninstall anything).
  • 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 uninstall <version>: Uninstall a specific version.
  • nvm use <version> [arch]: Switch to use the specified version. Optionally specify 32/64bit architecture. nvm use <arch> will continue using the selected version, but switch to 32/64 bit mode based on the value supplied to <arch>. For information about using use in a specific directory (or using .nvmrc), please refer to issue #16.
  • 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.
  • nvm node_mirror <node_mirror_url>: Set the node mirror.People in China can use https://npm.taobao.org/mirrors/node/
  • nvm npm_mirror <npm_mirror_url>: Set the npm mirror.People in China can use https://npm.taobao.org/mirrors/npm/

 

值得注意的是:安装完nvm 之后 输入以下命令会出现错误

Could not retrieve https://nodejs.org/dist/latest/SHASUMS256.txt.

Get https://nodejs.org/dist/latest/SHASUMS256.txt: net/http: TLS handshake timeout

技术图片

 

 

解决方案:

打开nvm安装目录找到到settings.txt 打开添加一下内容

node_mirror:npm.taobao.org/mirrors/node/
node_mirror:nom.taobao.org/mirrors/npm/

技术图片

 

 技术图片

 

nvm 常用命令

标签:eve   orm   value   cte   china   uninstall   running   img   continue   

原文地址:https://www.cnblogs.com/zshno1/p/14160974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!