centos7安装Node.js、nvm
2018-03-24 19:31
597 查看
centos7安装Node.js、nvm
安装Node.js
下载node.js 6.10.0wget -c https://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz
解压
tar zxvf node-v/v6.10.0.tar.gz
安装编译软件
yum -y install gcc make gcc-cc++ openssl-devel wget
编译
cd node-v6.10.0/
./configure
执行后
WARNING: failed to autodetect C++ compiler version (CXX=g++) //需要安装gcc
安装gcc
sudo yum install gcc gcc-c++
再编译
./configure
Make
sudo make install
查看node版本
node –version
安装nvm
到https://github.com/creationix/nvm 上查看版本,然后下载安装curl https://raw.githubusercontent.com/creationix/nvm/v0.23.0/install.sh | bash
source ~/.bash_profile
列出node版本
nvm list-remote 或者 nvm ls-remote
安装相应的版本
nvm install v6.10.2
查看已经安装的node版本
nvm list 或者 nvm ls
切换版本
nvm use v6.10.0
设置默认版本
nvm alias default v6.10.2
查看当前 node 版本
nvm current
相关文章推荐
- centos7安装node.js框架与配置环境变量
- nvm安装node.js
- 使用NVM安装Node.js
- Centos7下安装node.js
- 通过NVM安装Node.js
- nvm 安装nodejs &gulp
- Centos7 系统下node.js+Nginx+MongoDB的安装与配置
- 安装NVM、安装Node.js
- Mac OSX 安装nvm(node.js版本管理器)
- centos7下安装Node.js MongoDB Nginx
- nvm 安装node.js问题Computing checksum with shasum -a 256 Checksums do not match:
- CentOS7最小化安装 配置NODE.JS环境
- Windows下安装nvm和node.js
- CentOS7 安装node.js
- Node.js的环境安装配置(使用nvm方式)
- NVM安装管理Node.js(Windows)
- 部署Node.js环境——使用NVM安装多版本
- centos7用yum安装node.js
- nodejs nvm 安装
- 安装Node.js提示NVM Needs curl to process!