码迷,mamicode.com
首页 > Web开发 > 详细

centos 7 nodejs 安装

时间:2019-10-22 10:52:58      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:configure   解决   wget   连接   nodejs   centos 7   get   解压   tar   

1.获得wget https://nodejs.org/dist/v9.3.0/node-v9.3.0.tar.gz 安装包

2.解压:tar -xf node-v9.3.0.tar.gz

3.进入 cd node-v9.3.0

4.执行:./configure && make && make install  进行安装

node -v

技术图片

 

 报错解决:

技术图片

 

 做一个软连接即可:

 ln -s /srv/tool/node-v9.3.0/node /usr/bin/node

centos 7 nodejs 安装

标签:configure   解决   wget   连接   nodejs   centos 7   get   解压   tar   

原文地址:https://www.cnblogs.com/wwyxyt/p/11718177.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!