广州活力数据恢复中心

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11691|回复: 0

安装n给react node做版本控制

[复制链接]

860

主题

1784

帖子

9514

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9514
QQ
发表于 2022-4-19 07:47:13 | 显示全部楼层 |阅读模式
安装n给react node做版本控制

安装n命令
  1. npm install -g n
复制代码


通过n安装指定版本
  1. sudo n [版本]
复制代码

  1. Usage: n [options] [COMMAND] [args]

  2. Commands:

  3.   n                              Display downloaded Node.js versions and install selection
  4.   n latest                       Install the latest Node.js release (downloading if necessary)
  5.   n lts                          Install the latest LTS Node.js release (downloading if necessary)
  6.   n <version>                    Install Node.js <version> (downloading if necessary)
  7.   n install <version>            Install Node.js <version> (downloading if necessary)
  8.   n run <version> [args ...]     Execute downloaded Node.js <version> with [args ...]
  9.   n which <version>              Output path for downloaded node <version>
  10.   n exec <vers> <cmd> [args...]  Execute command with modified PATH, so downloaded node <version> and npm first
  11.   n rm <version ...>             Remove the given downloaded version(s)
  12.   n prune                        Remove all downloaded versions except the installed version
  13.   n --latest                     Output the latest Node.js version available
  14.   n --lts                        Output the latest LTS Node.js version available
  15.   n ls                           Output downloaded versions
  16.   n ls-remote [version]          Output matching versions available for download
  17.   n uninstall                    Remove the installed Node.js

  18. Options:

  19.   -V, --version         Output version of n
  20.   -h, --help            Display help information
  21.   -p, --preserve        Preserve npm and npx during install of Node.js
  22.   -q, --quiet           Disable curl output. Disable log messages processing "auto" and "engine" labels.
  23.   -d, --download        Download if necessary, and don't make active
  24.   -a, --arch            Override system architecture
  25.   --all                 ls-remote displays all matches instead of last 20
  26.   --insecure            Turn off certificate checking for https requests (may be needed from behind a proxy server)
  27.   --use-xz/--no-use-xz  Override automatic detection of xz support and enable/disable use of xz compressed node downloads.

  28. Aliases:

  29.   install: i
  30.   latest: current
  31.   ls: list
  32.   lsr: ls-remote
  33.   lts: stable
  34.   rm: -
  35.   run: use, as
  36.   which: bin

  37. Versions:

  38.   Numeric version numbers can be complete or incomplete, with an optional leading 'v'.
  39.   Versions can also be specified by label, or codename,
  40.   and other downloadable releases by <remote-folder>/<version>

  41.     4.9.1, 8, v6.1    Numeric versions
  42.     lts               Newest Long Term Support official release
  43.     latest, current   Newest official release
  44.     auto              Read version from file: .n-node-version, .node-version, .nvmrc, or package.json
  45.     engine            Read version from package.json
  46.     boron, carbon     Codenames for release streams
  47.     lts_latest        Node.js support aliases

  48.     and nightly, rc/10 et al
复制代码


硬盘数据恢复/优盘内存卡数据恢复/服务器数据恢复
data recovery service www.rflashdata.com 数据热线+86 18620923827(微信whatsapp)
buffalo 隨身碟數據救援 bitlocker WDV2 lacie EFS等加密硬盘数据恢复,指纹爱国者加密优盘数据恢复 +86 18620923827
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|硬盘FLASH数据恢复论坛

GMT+8, 2024-5-15 03:24 , Processed in 0.047882 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表