CentOS 安装 Node.js

yum 直接安装

如果安装 10.x:

curl -sL[https://rpm.nodesource.com/setup_10.x](https://rpm.nodesource.com/setup_10.x)| bash -

最新版:

curl -sL[https://rpm.nodesource.com/setup_13.x](https://rpm.nodesource.com/setup_13.x)| sudo -E bash -

稳定版:

curl -sL[https://rpm.nodesource.com/setup_12.x](https://rpm.nodesource.com/setup_12.x)| sudo -E bash -

sudo yum clean all && sudo yum makecache fast
 
sudo yum install -y gcc-c++ make

sudo yum install -y nodejs

nvm 安装

直接从github上clone NVM 项目源码到本地

git clone https://github.com/creationix/nvm.git 完成后需要执行下载下来的nvm文件

source nvm/nvm.sh

nvm --version 查看 nvm 版本

nvm install 12.16 下载 node.js 12.16 版本

http://helloreact.cn
HoServer : 开箱即用后台服务和管理平台脚手架
HoAppBase : 开箱即用跨平台App脚手架

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容