|-转 centos8安装nodejs
通过官方查询需要安装的版本
https://github.com/nodesource/distributions
在CentOS下获取相应版本的nodejs资源(以NodeJS 14.x为例)
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
运行
sudo yum install -y nodejs
进行nodejs安装
You may also need development tools to build native addons:
sudo yum install gcc-c++ make
To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo sudo yum install yarn
确认安装成功
node -v
npm -v
安装cnpm
npm install -g cnpm -registry=https://registry.npm.taobao.org
...
浏览更多内容请先登录。
立即注册
更新于:2022-04-27 22:31:42
相关内容
Centos7利用yum安装apache+mysql8+php7 一篇搞定!
Centos 服务器搭建(Centos8服务器搭建遇到的各种问题及解决方法)
Centos8 更新yum或安装软件时提示 Failed to download metadata for repo...
从CentOS 8到CentOS Stream,到底发生什么事了?
CentOS8出现“ Error: Failed to download metadata for repo ‘AppStrea...
如何将CentOS 8转换为CentOS Stream(202205实测有效)
Centos中查看nginx、apache、php、mysql配置文件路径
Centos7 安装Apache过程详解
推荐内容