跳至内容
sdvcrx's wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
Export to Markdown
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
frontend:nvm
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== nvm ====== {{tag>nodejs}} nvm - Node Version Manager - Simple bash script to manage multiple active [[wp>Node.js|node.js]] versions. ===== Installation ===== <code bash> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash </code> then add following lines to your profile: <code bash> export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm </code> ===== Usage ===== Install the latest release version of node: nvm install node Install lts version of node: nvm install --lts # or lts/boron Install the specify version of node: nvm install [version tag, such as v6.9.0] Install node and its packages: nvm install [new-version] --reinstall-packages-from=[old-version] List all available version of node: nvm ls-remote Uninstall specify version of node: nvm uninstall [version tag] Set sepcify version as default node: nvm alias default v6.9.0 ===== Accelerate downloading on Chinese Mainland ===== set ''$NVM_NODEJS_ORG_MIRROR'': export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node or use it directly: NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node nvm install [version] ===== Reference ===== * https://github.com/creationix/nvm
frontend/nvm.txt
· 最后更改: 2023/12/03 10:24 由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
Export to Markdown
回到顶部