nvm-window經常使用命令

window系統想要切換本身的node版本,找到了https://github.com/coreybutler/nvm-windowsnode

記錄下介紹的常見命令行,雖然簡單,但忘記的時候也能夠來翻翻吧git

 

 

nvm arch [32|64] : Show if node is running in 32 or 64 bit mode. Specify 32 or 64 to override the default architecture.以32仍是64位模式運行。 指定32或64來覆蓋默認體系結構。github

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. version能夠是制定的版本,也但是是latest指定爲最新版本,arch是選擇64仍是32的版本,npm

nvm list [available]: List the node.js installations. Type available at the end to show a list of versions available for download.列出node的安裝版本,在結尾加上available顯示可宮下載的node版本windows

nvm on: Enable node.js version management. 啓動node版本管理ide

nvm off: Disable node.js version management (does not uninstall anything).關閉版本管理,不會卸載url

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.使用下載的時候設置代理,url爲空的時候查看當前代理,設置爲none時移除代理spa

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.選擇使用指定的版本,可選32或64位。nvm use <arch>可繼續使用選擇的版本,可是會根據你輸入的是32仍是64來切換是32位仍是64位。若是有特殊的要求去精確到某個特殊目錄去運行,能夠參考issue16。有人提出需求了。代理

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.設置存儲不一樣node版本的目錄。若是沒有指定path會顯示當前的目錄

nvm version: Displays the current running version of NVM for Windows.顯示當前使用的node版本


nvm node_mirror <node_mirror_url>: Set the node mirror.People in China can use https://npm.taobao.org/mirrors/node/ 設置node鏡像,中國玩家能夠使用後面這段連接


nvm npm_mirror <npm_mirror_url>: Set the npm mirror.People in China can use https://npm.taobao.org/mirrors/npm/npm鏡像 ,中國玩家能夠看後面這段連接

相關文章
相關標籤/搜索