NVM 命令行帮助信息
Node Version Manager
Note:
<version>
refers to any version-like string nvm understands. This includes:
full or partial version numbers, starting with an optional
"v"
(0.10
,v0.1.2
,v1
)default (built-in) aliases: node, stable, unstable, iojs, system
custom aliases you define with
nvm alias foo
Any options that produce colorized output should respect the
--no-colors
option.
Usage:
nvm --help
Show this messagenvm --version
Print out the latest released version ofnvm
nvm install [-s] <version>
Download and install a <version>, [-s] from source. Uses.nvmrc
if available--reinstall-packages-from=<version>
When installing, reinstall packages installed in <node|iojs|node version number>--lts
When installing, only select from LTS (long-term support) versions--lts=<LTS name>
When installing, only select from versions for a specific LTS line
nvm uninstall <version>
Uninstall a versionnvm uninstall --lts
Uninstall using automatic LTS (long-term support) aliaslts/*
, if available.
nvm uninstall --lts=<LTS name>
Uninstall using automatic alias for provided LTS line, if available.nvm use [--silent] <version>
Modify PATH to use <version>. Uses .nvmrc if available- --lts Uses automatic LTS (long-term support) alias
lts/*
, if available. - --lts=<LTS name> Uses automatic alias for provided LTS line, if available.
- --lts Uses automatic LTS (long-term support) alias
nvm exec [--silent] <version> [<command>]
Run <command> on <version>. Uses .nvmrc if available--lts
Uses automatic LTS (long-term support) aliaslts/*
, if available.--lts=<LTS name>
Uses automatic alias for provided LTS line, if available.
nvm run [--silent] <version> [<args>] Runnode
on <version> with <args> as arguments. Uses .nvmrc if available--lts
Uses automatic LTS (long-term support) aliaslts/*
, if available.--lts=<LTS name>
Uses automatic alias for provided LTS line, if available.
nvm current Display currently activated version
nvm ls
List installed versionsnvm ls <version>
List versions matching a given <version>nvm ls-remote
List remote versions available for install--lts
When listing, only show LTS (long-term support) versions
nvm ls-remote <version> List remote versions available for install, matching a given <version>
--lts When listing, only show LTS (long-term support) versions
--lts=<LTS name> When listing, only show versions for a specific LTS line
nvm version <version>
Resolve the given description to a single local version
nvm version-remote <version> Resolve the given description to a single remote version--lts
When listing, only select from LTS (long-term support) versions--lts=<LTS name>
When listing, only select from versions for a specific LTS line
nvm deactivate
Undo effects ofnvm
on current shellnvm alias [<pattern>]
Show all aliases beginning with <pattern>nvm alias <name> <version>
Set an alias named <name> pointing to <version>nvm unalias <name>
Deletes the alias named <name>nvm reinstall-packages <version>
Reinstall globalnpm
packages contained in <version> to current versionnvm unload
Unloadnvm
from shellnvm which [<version>]
Display path to installed node version. Uses .nvmrc if availablenvm cache dir
Display path to the cache directory for nvmnvm cache clear
Empty cache directory for nvm
Example:
nvm install v0.10.32
Install a specific version number
nvm use 0.10
Use the latest available 0.10.x release
nvm run 0.10.32 app.js
Run app.js using node v0.10.32
nvm exec 0.10.32 node app.js
Run node app.js
with the PATH pointing to node v0.10.32
nvm alias default 0.10.32
Set default node version on a shell
Note:
to remove, delete, or uninstall nvm - just remove the $NVM_DIR
folder (usually ~/.nvm
)
有疑问、勘误、请您在下方留言,感谢您的支持 ღ( ´・ᴗ・` )!
如果转载,请注明出处: 极客点子版权所有(/page/595.html)

本网站使用 创作共用 归属 - 非商业用途 - 共享4.0国际许可协议的相同方式 许可.
- You Don't Know JS: Async & Performance Appendix B: Advanced Async Patterns
- 6.You Don't Know JS: ES6 & Beyond Chapter 5: Collections
- You Don't Know JS: ES6 & Beyond Chapter 6: API Additions
- 2.You Don't Know JS: ES6 & Beyond Chapter 1: ES? Now & Future
- You Don't Know JS: ES6 & Beyond Chapter 8: Beyond ES6
博文分类
- nodejs
- express
- thinkjs
- go
- beego
- javascript
- css3
- react native
- python3
- react
- 翻译
- 手册
- 树莓
- Error修复
- 五味
- IoT
- 技巧
- swift
- Android
- C++
- ruby
- perl
- linux
- mysql
- pgSQL
- Redis
- webpack
- C
- Object-C
- SOA
- browserify
- unix
- NDK
- C#
- Docker
- java
- PHP
- gulp
- Sass
- Data mining
- Architecture
- Laravel
- TCP/IP
- AI
- Unix Socket
- Lua
- League of Legends
- tensorflow
- minecraft
- flutter
- dart2
- mongodb
- Julia
- UML
- typescript
- rust
- nginx
- 极客时间
- 架构与道
- 算法
- RHCA