💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] # 升级 ~~~ sudo yum install vim openssl build-essential libssh-dev wget curl git ~~~ <br> # 安装nvm To **install** or **update** nvm, you can use the[install script](https://github.com/nvm-sh/nvm/blob/v0.34.0/install.sh) using cURL: ~~~shell curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash ~~~ or Wget: ~~~shell wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash ~~~ <br> ## 安装lts版本 ~~~ nvm install --lts ~~~ <br> ## 安装最新版 ~~~ nvm install stable ~~~ <br> # 修改文件监听数量 在linux中默认使用inotify来监视目录文件的变化.如果需要监视的目录文件过大,超过linux的默认值,监视就会失效 ~~~ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p ~~~ <br> <br> # 安装nrm 安装 ~~~ npm install -g nrm ~~~ <br> 显示镜像 ~~~ nrm ls ~~~ <br> 使用镜像 ~~~ nrm use taobao ~~~ <br> <br> # 安装cnpm ~~~ npm install -g cnpm --registry=https://registry.npm.taobao.org ~~~ ## 同步模块 直接通过`sync`命令马上同步一个模块, 只有`cnpm`命令行才有此功能: ~~~bash $ cnpm sync connect ~~~ # 安装插件 ~~~ npm i pm2 webpack gulp grunt -g ~~~